/* ==========================================================================
   Tyler Hopp | Compass — Design Tokens
   Clean, modern luxury in the spirit of the Compass brand:
   near-black + white + grey, with a single deep accent used sparingly.
   ========================================================================== */

:root {
  /* Color */
  --paper: #FAFAFA;
  --paper-dim: #F1F0EE;
  --ink: #141414;
  --ink-soft: #545454;
  --ink-faint: #8A8A8A;
  --surface-dark: #121212;
  --accent: #1F2A3D;
  --accent-light: #5B7C99;
  --line: #E3E1DD;
  --line-dark: #333333;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 2px;
  --radius-md: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; font-weight: 560; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--paper-dim); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-brand { display: flex; align-items: center; gap: 0.65rem; }
.logo-brand .compass-mark { height: 15px; width: auto; display: block; }
.logo-brand .agent-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 0.2em 0;
  color: var(--ink);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 1.5rem; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); overflow-y: auto; background: var(--paper); flex-direction: column; padding: 2rem var(--gutter); gap: 1.5rem; font-size: 1.1rem; transform: translateY(-150vh); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 0.4em; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: 0.2s;
  }
  .nav-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--ink); }
  .nav-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--ink); }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-art { position: relative; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Market ticker (signature element) ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
  padding: 0.9rem 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0 2.2rem;
  border-right: 1px solid var(--line-dark);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.ticker-item .stat-label { color: #A8A8A8; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.ticker-item .stat-value { font-size: 1rem; font-weight: 700; color: var(--paper); }
.ticker-item .stat-delta.up { color: #8FBF98; }
.ticker-item .stat-delta.down { color: #D98C8C; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-alt { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--surface-dark); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #C9C9C9; }
.section-dark .eyebrow { color: var(--accent-light); }
.section-dark .eyebrow::before { background: var(--accent-light); }

/* ---------- Value props / grid cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.card .num {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.8rem;
}

/* ---------- Process steps ---------- */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item .step-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.3rem;
}
@media (max-width: 640px) { .process-item { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Neighborhood cards ---------- */
.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .hood-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hood-grid { grid-template-columns: 1fr; } }

.hood-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hood-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hood-card .hood-band {
  height: 90px;
  background: linear-gradient(135deg, var(--ink), var(--surface-dark));
  position: relative;
}
.hood-card .hood-body { padding: 1.4rem; }
.hood-card h3 { margin-bottom: 0.3rem; }
.hood-card .hood-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}
.testimonial .stars {
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.7rem;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.testimonial cite {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-light);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--paper); margin-bottom: 0.3rem; }
.cta-band p { color: #DCE6ED; margin-bottom: 0; }
.cta-band .btn-on-dark { flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: #C9C9C9;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6em; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #8A8A8A;
}

/* ---------- Headshot ---------- */
.headshot {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

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

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero p.lede { font-size: 1.1rem; max-width: 60ch; }

/* ---------- Stat strip (about/selling pages) ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: left; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent-light); display: block; }
.stat-strip .stat-cap { font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.section-dark .stat-strip .stat-cap { color: #A8A8A8; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 1rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8em 1.2em;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); }
