/* ============ Design tokens ============
   Ivory:      #FBFAF6
   Forest:     #1E3A2F
   Forest-dk:  #14271F
   Gold:       #A67C34
   Gold-lt:    #C9A45E
   Ink:        #23261F
   Slate:      #5A6158
   Line:       #E6E2D6
================================== */

:root {
  --ivory: #FBFAF6;
  --paper: #FFFFFF;
  --forest: #1E3A2F;
  --forest-dk: #14271F;
  --gold: #A67C34;
  --gold-lt: #C9A45E;
  --ink: #23261F;
  --slate: #5A6158;
  --line: #E6E2D6;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--forest); margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-body);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  border: 1.5px solid var(--gold);
  color: var(--forest);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand-name { font-family: var(--font-display); font-size: 29px; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; }
.brand-dot { color: var(--gold); }
.main-nav { display: flex; gap: 34px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 4px 0; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-phone {
  color: var(--forest);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.header-phone::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .wrap { padding: 0 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-dk); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8f6a2c; }
.btn-outline { background: transparent; border: 1px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--ivory); }
.btn-ghost-light { background: transparent; border: 1px solid rgba(251,250,246,.5); color: var(--ivory); }
.btn-ghost-light:hover { background: rgba(251,250,246,.12); border-color: var(--ivory); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest-dk);
  color: var(--ivory);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,39,31,.72) 0%, rgba(20,39,31,.88) 100%),
    url('/img/hero-home.svg') center/cover no-repeat;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero-eyebrow { color: var(--gold-lt); margin-bottom: 22px; font-size: 15px; letter-spacing: 3px; }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  max-width: 900px;
  margin-bottom: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero p.lead {
  font-size: 18.5px;
  max-width: 540px;
  color: #DCE1D9;
  margin-bottom: 38px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Process strip */
.process-strip {
  border-top: 1px solid rgba(251,250,246,.16);
  margin-top: 70px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.process-item .step-label { font-family: var(--font-display); font-size: 19px; color: var(--gold-lt); font-style: italic; margin-bottom: 8px; }
.process-item .step-title { font-weight: 600; font-size: 19px; color: var(--ivory); margin-bottom: 5px; }
.process-item .step-sub { font-size: 15px; color: #A9B3A9; line-height: 1.5; }
@media (max-width: 820px) {
  .process-strip { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-forest { background: var(--forest); color: var(--ivory); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.section-head p { color: var(--slate); font-size: 17px; }
.section-forest .section-head h2 { color: var(--ivory); }
.section-forest .section-head p { color: #C4CCC2; }

/* ---------- Property grid / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.property-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.property-card:hover { box-shadow: 0 18px 44px rgba(20,39,31,.13); transform: translateY(-4px); }
.property-photo { height: 210px; background: #E4E0D2 center/cover no-repeat; position: relative; }
.property-status {
  position: absolute; top: 14px; left: 14px;
  background: var(--ivory); color: var(--forest);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; padding: 6px 12px;
  font-family: var(--font-body);
}
.property-status.pending { background: var(--gold); color: #fff; }
.property-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.property-price { font-family: var(--font-display); font-size: 30px; color: var(--forest); font-weight: 600; line-height: 1; }
.property-address { font-size: 14.5px; color: var(--slate); margin: 8px 0 16px; }
.property-meta { display: flex; gap: 18px; font-size: 13.5px; color: var(--slate); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.property-meta strong { color: var(--ink); font-weight: 600; }
.property-terms {
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
}
.property-terms::before { content: ''; width: 16px; height: 1.5px; background: var(--gold); }

.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 16px;
}
.empty-state a { color: var(--gold); font-weight: 600; }

/* ---------- Value columns ---------- */
.value-col h3 { font-size: 24px; margin-bottom: 10px; }
.value-col .value-num { font-family: var(--font-display); font-style: italic; font-size: 64px; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.value-col p { color: var(--slate); font-size: 15.5px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 40px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--forest); text-transform: uppercase; letter-spacing: .6px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px;
  max-width: 660px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 32px 24px; } }

.alert-success {
  background: #EEF3EC;
  border-left: 3px solid var(--forest);
  color: var(--forest);
  padding: 16px 22px;
  font-weight: 500;
  margin-bottom: 26px;
}
.alert-error {
  background: #FAF0E8;
  border-left: 3px solid var(--gold);
  color: #8f6a2c;
  padding: 14px 20px;
  font-weight: 500;
  margin-bottom: 22px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 22px; margin-bottom: 10px; }
.faq-item p { color: var(--slate); margin: 0; font-size: 15.5px; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; margin: 0 auto; }

.prose ul { margin: 0 0 1.2em; padding-left: 22px; }
.prose ul li { color: #3f463d; font-size: 16.5px; margin-bottom: 6px; line-height: 1.6; }
.prose h2 { font-size: 22px; margin-top: 1.6em; margin-bottom: .5em; }
.prose h1 { margin-bottom: .6em; }
.prose p { color: #3f463d; }

.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: .4em; }
.prose h2 { margin-top: 1.5em; font-size: 28px; }
.prose p { color: #3f463d; font-size: 16.5px; }
.prose a { color: var(--gold); font-weight: 600; }

/* ---------- Property detail ---------- */
.detail-hero { position: relative; height: 440px; background: #E4E0D2 center/cover no-repeat; }
.detail-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; margin-top: 48px; }
@media (max-width: 880px) { .detail-layout { grid-template-columns: 1fr; gap: 36px; } .detail-hero { height: 320px; } }
.detail-meta-row { display: flex; gap: 28px; font-size: 15.5px; margin: 20px 0 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta-row strong { font-family: var(--font-display); font-size: 22px; color: var(--forest); display: block; }
.detail-meta-row span { color: var(--slate); font-size: 13px; }
.terms-card {
  background: var(--forest);
  color: var(--ivory);
  padding: 34px;
  position: sticky;
  top: 106px;
}
.terms-card .tc-price { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; }
.terms-card .tc-label { color: var(--gold-lt); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 24px; }
.terms-card .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(251,250,246,.14); font-size: 14.5px; color: #DCE1D9; }
.terms-card .row .v { font-weight: 600; color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dk); color: #A9B3A9; padding: 68px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(251,250,246,.1); }
.footer-brand { font-family: var(--font-display); font-size: 26px; color: var(--ivory); margin-bottom: 14px; }
.footer-tagline { color: #8F998E; font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.footer-heading { color: var(--ivory); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 11px; color: #A9B3A9; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: #6F7A6E; }
.footer-bottom a { color: #6F7A6E; }
.footer-bottom a:hover { color: var(--gold-lt); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-bottom { flex-direction: column; gap: 10px; } }

/* ---------- Admin ---------- */
.admin-shell { background: var(--ivory); min-height: 100vh; padding: 44px 0; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.admin-table th, .admin-table td { text-align: left; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--forest); color: var(--ivory); font-weight: 600; font-size: 13px; }
.admin-actions a, .admin-actions button { margin-right: 12px; font-size: 13.5px; font-weight: 600; color: var(--forest); }
.admin-actions .danger { color: #A6432F; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--forest-dk); }

/* ---------- Property gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #E4E0D2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--paper); border: 1px solid var(--line); padding: 30px 28px; display: flex; flex-direction: column; }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); margin-bottom: 22px; }
.testimonial-name { font-weight: 600; font-size: 15px; color: var(--forest); }
.testimonial-role { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }

/* ---------- Admin review queue ---------- */
.review-card { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); margin-bottom: 20px; padding: 22px 24px; }
.review-main { display: flex; gap: 24px; justify-content: space-between; }
.review-fields { flex: 1; min-width: 0; }
.review-price { font-family: var(--font-display); font-size: 26px; color: var(--forest); font-weight: 600; }
.review-missing { font-family: var(--font-body); font-size: 12px; color: #A6432F; background: #FAF0E8; padding: 2px 8px; margin-left: 10px; border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.review-addr { color: var(--slate); font-size: 15px; margin: 4px 0 12px; }
.review-meta { display: flex; gap: 16px; font-size: 13.5px; color: var(--slate); align-items: center; }
.review-meta strong { color: var(--ink); }
.review-tag { background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; }
.review-desc { color: #3f463d; font-size: 14.5px; margin: 12px 0 0; }
.review-raw { margin-top: 14px; }
.review-raw summary { cursor: pointer; font-size: 13px; color: var(--gold); font-weight: 600; }
.review-raw-body { background: var(--ivory); border: 1px solid var(--line); padding: 12px 14px; margin-top: 8px; font-size: 13.5px; color: #3f463d; white-space: pre-line; }
.review-raw-meta { font-size: 12px; color: var(--slate); margin-top: 6px; }
.review-photos { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }
.review-photos img { width: 66px; height: 66px; object-fit: cover; border: 1px solid var(--line); }
.review-morephotos { align-self: center; font-size: 13px; color: var(--slate); font-weight: 600; }
.review-nophoto { color: var(--slate); font-size: 13px; font-style: italic; padding: 8px 0; }
.review-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn-reject { background: transparent; border: 1px solid #A6432F; color: #A6432F; padding: 15px 30px; font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: var(--font-body); }
.btn-reject:hover { background: #A6432F; color: #fff; }

/* ---------- Shared price block (payment first) ----------
   Rendered by views/partials/price-block.ejs — the single place price is laid
   out on the website. Monthly leads, down payment second, purchase price last
   and quietest. Every surface uses this so the hierarchy can't drift. */
.price-block { line-height: 1.15; }
.price-block .pb-headline { font-family: var(--font-display); color: var(--forest); font-weight: 600; line-height: 1; }
.price-block .pb-per { font-family: var(--font-body); font-weight: 500; color: var(--slate); }
.price-block .pb-second { color: var(--gold); font-weight: 600; }
.price-block .pb-price { color: var(--slate); }

/* Card / thumbnail */
.price-block--card .pb-headline { font-size: 30px; }
.price-block--card .pb-per { font-size: 15px; }
.price-block--card .pb-second { font-size: 15px; margin-top: 4px; }
.price-block--card .pb-price { font-size: 12.5px; margin-top: 3px; }

/* Full listing terms panel (sits on the dark card, so colours invert) */
.price-block--full .pb-headline { font-size: 42px; color: var(--ivory); }
.price-block--full .pb-per { font-size: 18px; color: #C6CFC5; }
.price-block--full .pb-second { font-size: 18px; color: var(--gold-lt); margin-top: 8px; }
.price-block--full .pb-price { font-size: 13px; color: #A9B3A9; margin-top: 10px; }
