/* ──────────────────────────────────────────────────────────
   InvestorDealVault — design system (warm minimal × refined blue)
   ────────────────────────────────────────────────────────── */

/* Poppins, self-hosted. Latin subset, five weights — no third-party
   connection and no render-blocking stylesheet from Google. */
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/poppins-300.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/poppins-400.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/poppins-500.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/poppins-600.woff2') format('woff2')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/poppins-700.woff2') format('woff2')}

:root {
  /* Surfaces */
  --paper: #f4f1ea;          /* warm off-white page bg */
  --paper-2: #ebe6da;        /* slightly darker warm tone */
  --surface: #ffffff;
  --surface-warm: #fbf9f4;

  /* Ink */
  --ink: #0e1622;            /* near-black, slight cool */
  --ink-2: #1f2a3a;
  --ink-muted: #5a6473;
  --ink-soft: #8a93a1;
  --line: rgba(14, 22, 34, 0.09);
  --line-strong: rgba(14, 22, 34, 0.18);

  /* Brand */
  --brand: #1e3a8a;          /* deep navy — primary */
  --brand-2: #2c7be5;        /* their accent blue */
  --brand-sky: #0ea5e9;
  --brand-tint: #eaf1fb;     /* soft blue wash */
  --brand-ink: #0c1f4a;

  /* Functional */
  --equity: #146a3f;
  --equity-tint: #e6f2eb;
  --warn: #b45309;
  --warn-tint: #fdf0e0;
  --sold: #9f1239;
  --sold-tint: #fce9ee;

  /* Radii / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(14,22,34,0.04), 0 1px 1px rgba(14,22,34,0.03);
  --shadow-2: 0 4px 14px -4px rgba(14,22,34,0.10), 0 2px 4px -2px rgba(14,22,34,0.05);
  --shadow-3: 0 12px 32px -10px rgba(14,22,34,0.18), 0 4px 10px -4px rgba(14,22,34,0.08);

  /* Type */
  --font-sans: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --num-feat: "tnum" 1, "lnum" 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { background: var(--paper); }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.num { font-feature-settings: var(--num-feat); font-variant-numeric: tabular-nums lining-nums; }

/* ─── Header ─── */
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 90;
}
.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* Anchors the mobile nav sheet, which drops out of the header. */
  position: relative;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-mark img {
  display: block;
  height: 40px;
  width: auto;
}
.site-footer .brand-mark img { height: 44px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: rgba(255,255,255,0.78);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.site-nav .cta {
  margin-left: 8px;
  background: var(--brand-2);
  color: #fff;
  padding: 9px 16px;
  font-weight: 600;
}
.site-nav .cta:hover { background: #1f6ed3; color: #fff; }

/* ─── Mobile header controls (hidden at desktop widths) ─── */
.header-mobile { display: none; align-items: center; gap: 8px; }
/* Both controls share one shape so they read as a pair. */
.hdr-call, .hdr-burger {
  width: 38px; height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}
.hdr-call {
  background: var(--brand-2);
  display: grid; place-items: center;
  color: #fff;
}
.hdr-call svg { width: 17px; height: 17px; }
.hdr-burger {
  position: relative;
  border: 0;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 0;
}
/* Bars are absolutely placed so their spacing is exact — a flex/grid gap plus
   a transform offset ends up double-spacing them. */
.hdr-burger span {
  position: absolute;
  left: 10px;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: top 0.18s ease, transform 0.18s ease, opacity 0.12s ease;
}
.hdr-burger span:nth-child(1) { top: 13px; }
.hdr-burger span:nth-child(2) { top: 18px; }
.hdr-burger span:nth-child(3) { top: 23px; }
/* The three bars collapse into an X while the sheet is open. */
.nav-open .hdr-burger span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-open .hdr-burger span:nth-child(2) { opacity: 0; }
.nav-open .hdr-burger span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 56px 40px 40px;
  margin-top: 40px;
}
.site-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: #fff; }
.site-footer .colophon {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.site-footer .tagline {
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  max-width: 360px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-brand {
  background: var(--brand-2);
  color: #fff;
}
.btn-brand:hover { background: var(--brand); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ─── Status badge ─── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(20, 106, 63, 0.18);
}
.status-available { background: var(--equity-tint); color: var(--equity); }
.status-pending   { background: var(--warn-tint);   color: var(--warn); }
.status-pending::before { box-shadow: 0 0 0 3px rgba(180,83,9,0.18); }
.status-sold      { background: var(--sold-tint);   color: var(--sold); }
.status-sold::before { box-shadow: 0 0 0 3px rgba(159,18,57,0.18); }

/* ─── Section helpers ─── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.h-display {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
}
.h-section {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.muted { color: var(--ink-muted); }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 28px; }

/* Hairline divider that respects warm tone */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
}

/* Make header logo responsive */
@media (max-width: 760px) {
  .site-header-inner { padding: 10px 18px; gap: 12px; }
  .brand-mark img { height: 32px; }
  .header-mobile { display: flex; }

  /* Nav becomes a sheet that drops out of the header rather than a second and
     third row of chrome above the content. */
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,0.55);
    padding: 6px 12px 14px;
    /* Collapsed by default. visibility keeps it out of the tab order. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding: 15px 14px;
    font-size: 16px;
    border-radius: 10px;
  }
  .site-nav a + a { border-top: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
  /* The phone number already has a dedicated button in the header bar. */
  .site-nav .cta { display: none; }

  /* Footer: one column, so the tagline stops wrapping a word per line. */
  .site-footer { padding: 40px 20px 28px; margin-top: 56px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-bottom: 28px; }
  .site-footer-inner > :first-child { grid-column: 1 / -1; }
  .site-footer .tagline { max-width: 46ch; margin-top: 14px; }
  .site-footer h4 { margin-bottom: 12px; }
  .site-footer .colophon { padding-top: 20px; font-size: 12px; }
}
