/* =========================================================
   TIGHT & RIGHT REAL ESTATE VALUATION
   Design concept: "The Value Line"
   A blueprint becomes a ledger becomes a certified report —
   that is literally the arc of an appraisal, and it's the
   arc of this design. Dark navy "blueprint" surfaces open
   each page; warm paper "report" surfaces carry the reading.
   A tape-measure rule (the Value Line) marks every major
   transition. A rotated ink-stamp seal carries credentials,
   because that's what actually goes on a certified report.
   ========================================================= */

:root {
  /* Color tokens */
  --ink:           #131E30;   /* blueprint navy, darkest */
  --ink-2:         #1D2E4A;   /* blueprint navy, lighter panel */
  --surveyor:      #2E4E7E;   /* primary brand blue */
  --surveyor-light:#4A6FA5;
  --blue-line:     #6E8CB8;   /* faint blueprint grid/line color on navy */
  --brass:         #A47C2B;   /* seal / accent */
  --brass-light:   #C79A42;
  --brass-pale:    #E7D6AC;
  --paper:         #F4F1E8;   /* report paper */
  --paper-dim:     #EAE4D2;
  --paper-line:    #D8CFB3;   /* ledger rule on paper */
  --white:         #FFFFFF;
  --text:          #1B1B18;
  --text-soft:     #4B4A44;
  --text-on-navy:  #E9EDF4;
  --text-on-navy-soft: #AAB8CE;
  --success:       #3F6E4C;

  /* Type */
  --font-display: "Zilla Slab", "Georgia", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5: clamp(3rem, 2.1rem + 4vw, 4.8rem);

  --container: 1180px;
  --radius: 3px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--surveyor); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.on-navy p, .on-navy li { color: var(--text-on-navy-soft); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--white); }

/* =========================================================
   THE VALUE LINE — signature divider component
   A ruled measuring line with tick marks, used wherever
   the design needs to mark a transition or a scale.
   ========================================================= */
.value-line {
  --tick-color: var(--paper-line);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 2.5rem;
  color: var(--text-soft);
}
.value-line::before, .value-line::after {
  content: "";
  flex: 1;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--tick-color) 0,
    var(--tick-color) 1px,
    transparent 1px,
    transparent 12px
  );
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: auto 100%;
  border-bottom: 1.5px solid var(--tick-color);
}
.value-line span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 4px;
}
.on-navy .value-line { --tick-color: var(--blue-line); color: var(--text-on-navy-soft); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  background: var(--ink);
  color: var(--text-on-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--white); }
.brand-text .sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); }

nav.primary-nav { display: flex; align-items: center; gap: 4px; }
nav.primary-nav a {
  color: var(--text-on-navy-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}
.nav-cta {
  background: var(--brass);
  color: var(--ink) !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--brass-light); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--white); padding: 8px 10px; border-radius: var(--radius); }

@media (max-width: 900px) {
  nav.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 12px 8px; }
  .nav-toggle { display: inline-block; }
}

/* =========================================================
   HERO — the blueprint
   ========================================================= */
.hero {
  background:
    linear-gradient(180deg, rgba(19,30,48,0.94), rgba(19,30,48,0.98)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(110,140,184,0.16) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(110,140,184,0.16) 40px),
    var(--ink);
  color: var(--text-on-navy);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before { content: "◈"; }
.hero h1 { color: var(--white); font-size: var(--step-5); }
.hero .lede { color: var(--text-on-navy-soft); font-size: var(--step-1); max-width: 46ch; margin-top: 10px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-photo-wrap {
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px;
  background: rgba(255,255,255,0.02);
}
.hero-photo-wrap img { width: 100%; height: auto; }
.hero-photo-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-navy-soft);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 320px; }
}

/* Corner registration ticks — appears on hero photo + section frames */
.reg-frame { position: relative; }
.reg-frame::before, .reg-frame::after,
.reg-frame > .rf-tl, .reg-frame > .rf-br { content: ""; }
.reg-mark { position: absolute; width: 16px; height: 16px; }
.reg-mark.tl { top: -1px; left: -1px; border-top: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.reg-mark.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--brass); border-right: 2px solid var(--brass); }

/* Stat strip under hero */
.stat-strip {
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 24px; }
.stat { text-align: center; border-left: 1px solid rgba(255,255,255,0.1); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-mono); font-size: var(--step-2); color: var(--brass-light); display: block; font-weight: 600; }
.stat .label { font-size: 0.78rem; color: var(--text-on-navy-soft); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 700px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* =========================================================
   SECTIONS (report / paper surfaces)
   ========================================================= */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surveyor);
  display: block;
  margin-bottom: 10px;
}
.bg-navy { background: var(--ink); color: var(--text-on-navy); }
.bg-panel { background: var(--paper-dim); }
.bg-white { background: var(--white); }

/* Ledger field — the report-line-item layout used across service pages */
.ledger {
  border-top: 1px solid var(--paper-line);
}
.ledger-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--paper-line);
}
.ledger-row .field-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 4px;
}
.ledger-row h3 { margin-bottom: 10px; font-size: var(--step-1); }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 1fr; gap: 8px; }
}

/* Card grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 28px;
  border-radius: var(--radius);
}
.card h3 { font-size: var(--step-1); }
.card .card-icon { width: 34px; height: 34px; color: var(--surveyor); margin-bottom: 14px; }

/* Service index cards link style */
a.card { display: block; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { text-decoration: none; border-color: var(--brass); transform: translateY(-2px); }
a.card .go { font-family: var(--font-mono); font-size: 0.78rem; color: var(--surveyor); text-transform: uppercase; letter-spacing: 0.06em; }

/* =========================================================
   THE SEAL — credential stamp
   ========================================================= */
.seal-row { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.seal {
  width: 128px; height: 128px;
  flex-shrink: 0;
}
.seal svg { width: 100%; height: 100%; transform: rotate(-8deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-item { border-bottom: 1px solid var(--paper-line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--brass); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { margin-top: 14px; max-width: 68ch; }

/* =========================================================
   FORM
   ========================================================= */
.form-panel { background: var(--white); border: 1px solid var(--paper-line); padding: 36px; border-radius: var(--radius); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--surveyor); outline: none; }
.form-hint { font-size: 0.82rem; color: var(--text-soft); margin-top: -8px; margin-bottom: 20px; }

/* =========================================================
   TESTIMONIAL / QUOTE
   ========================================================= */
.quote-block { border-left: 3px solid var(--brass); padding-left: 26px; margin: 0; }
.quote-block p { font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--ink); }
.quote-attrib { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
footer.site-footer { background: var(--ink); color: var(--text-on-navy-soft); padding: 60px 0 30px; }
footer.site-footer h4 { color: var(--text-on-navy); }
footer.site-footer a { color: var(--text-on-navy-soft); }
footer.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   BREADCRUMB / PAGE HEAD (interior pages)
   ========================================================= */
.page-head { background: var(--ink); color: var(--text-on-navy); padding: 52px 0 60px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-on-navy-soft); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-on-navy-soft); }
.breadcrumb a:hover { color: var(--white); }
.page-head h1 { color: var(--white); font-size: var(--step-4); max-width: 24ch; }
.page-head .lede { color: var(--text-on-navy-soft); font-size: var(--step-1); max-width: 56ch; margin-top: 14px; }

/* County chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 14px; border: 1px solid var(--paper-line); border-radius: 999px; color: var(--text-soft); background: var(--white); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Blog */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.post-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--paper-line); }
.post-row .post-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft); text-transform: uppercase; padding-top: 4px; }
.post-row h3 { margin-bottom: 8px; }
@media (max-width: 620px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }

article.post-body { max-width: 72ch; margin: 0 auto; }
article.post-body h2 { margin-top: 1.6em; }
article.post-body p, article.post-body li { color: var(--text); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--ink); padding: 12px 20px; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

.cta-band { background: var(--surveyor); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: var(--text-on-navy-soft); max-width: 52ch; margin: 12px auto 30px; }
