/* ============================================================
   ROOKS BUILDING CONSULTING — Design System
   Ink & Parchment, with brass survey-mark accents.
   Display: Fraunces / Body: Public Sans / Data: IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #1B231F;
  --ink-soft: #2C352F;
  --parchment: #F4EEDD;
  --parchment-deep: #E9DFC4;
  --brass: #A87C3F;
  --brass-light: #CBA463;
  --text-muted: #5C645D;
  --text-on-parchment: #25291F;
  --text-on-ink: #EFE7D2;
  --line: rgba(27, 35, 31, 0.14);
  --line-on-ink: rgba(244, 238, 221, 0.18);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text-on-parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--text-on-parchment);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; font-optical-sizing: auto; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-on-parchment); }
.lede { font-size: 1.18rem; color: var(--text-muted); font-weight: 400; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--ink); }
strong { font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9em;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Topographic watermark ---------- */
.topo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.topo-bg svg { width: 100%; height: 100%; }

/* ---------- Nav ---------- */
header.site-nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-on-ink);
}
.nav-inner { position: relative; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text-on-ink);
  letter-spacing: -0.01em;
}
.logo span { color: var(--brass-light); }
.nav-right-group { display: flex; align-items: center; gap: 28px; }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a {
  color: var(--text-on-ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 1.5px solid transparent;
}
nav.links a:hover, nav.links a.active {
  color: var(--brass-light);
  border-bottom-color: var(--brass);
}
.nav-cta {
  background: var(--brass);
  color: var(--ink) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brass-light); color: var(--ink) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); color: var(--ink); }
.btn-outline { background: transparent; color: var(--text-on-parchment); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--text-on-ink); }
.btn-outline-light { background: transparent; color: var(--text-on-ink); border-color: var(--line-on-ink); }
.btn-outline-light:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--parchment);
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--brass);
  margin: 22px 0 26px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Survey-mark card (signature element) ---------- */
.card {
  position: relative;
  background: var(--parchment-deep);
  padding: 32px 30px;
  border-radius: var(--radius);
}
.card::before, .card::after,
.card .corner-tl, .card .corner-br { content: ""; }
.card::before {
  content: "";
  position: absolute; top: 10px; left: 10px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--brass);
  border-left: 2px solid var(--brass);
}
.card::after {
  content: "";
  position: absolute; bottom: 10px; right: 10px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
}
.card h3 { margin-bottom: 10px; }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}
.card-grid { display: grid; gap: 22px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card-dark {
  background: var(--ink-soft);
  color: var(--text-on-ink);
}
.card-dark h3, .card-dark p { color: var(--text-on-ink); }
.card-dark::before { border-color: var(--brass-light); }
.card-dark::after { border-color: var(--brass-light); }

/* ---------- Credibility / stat strip ---------- */
.strip {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 26px;
  border-left: 1px solid var(--line-on-ink);
  text-align: left;
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--brass-light);
  display: block;
  margin-bottom: 6px;
}
.stat .label {
  font-size: 0.88rem;
  color: var(--text-on-ink);
  opacity: 0.85;
}

/* ---------- Sections on ink ---------- */
.section-ink { background: var(--ink); color: var(--text-on-ink); }
.section-ink h2, .section-ink h3, .section-ink p { color: var(--text-on-ink); }
.section-ink .eyebrow { color: var(--brass-light); }

/* ---------- Ledger / pricing table ---------- */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.ledger th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 2px solid var(--brass);
}
.ledger td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger .price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.ledger tr:last-child td { border-bottom: none; }

.price-card {
  background: var(--parchment-deep);
  padding: 30px 28px;
  position: relative;
}
.price-card .amount {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin: 10px 0 4px;
}
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.96rem;
}
.compare th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--ink);
}
.compare td.yes { color: var(--ink); font-weight: 600; }
.compare td.yes::before { content: "✓ "; color: var(--brass); }
.compare td.no { color: var(--text-muted); }
.compare td.no::before { content: "— "; color: var(--text-muted); }

/* ---------- Checklist / list w/ brass marks ---------- */
ul.marked { list-style: none; padding: 0; margin: 0; }
ul.marked li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
ul.marked li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 56px 0 32px;
  border-top: 3px solid var(--brass);
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
footer.site-footer h4 {
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer.site-footer a { color: var(--text-on-ink); opacity: 0.88; }
footer.site-footer a:hover { color: var(--brass-light); opacity: 1; }
footer.site-footer p { color: var(--text-on-ink); opacity: 0.75; font-size: 0.92rem; }
.foot-bottom {
  border-top: 1px solid var(--line-on-ink);
  padding-top: 22px;
  font-size: 0.82rem;
  opacity: 0.65;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-on-parchment);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.98rem;
  border-radius: var(--radius);
  color: var(--text-on-parchment);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gap-sm { gap: 16px; }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.divider-brass { height: 3px; width: 100%; background: linear-gradient(90deg, var(--brass), transparent); margin: 8px 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  nav.links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 18px;
    border-bottom: 1px solid var(--line-on-ink);
  }
  nav.links.open { display: flex; }
  nav.links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-on-ink); }
  nav.links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-cta { padding: 8px 14px !important; font-size: 0.86rem !important; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-bottom: 1px solid var(--line-on-ink); }
  footer.site-footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 480px) {
  .nav-right-group { gap: 14px; }
  .logo { font-size: 1.02rem; }
}
