/* ==========================================================
   Connor Jones Real Estate — shared styles for every page
   ========================================================== */

:root {
  --stone:      #F3EFE7;
  --stone-2:    #EAE4D8;
  --stone-3:    #DFD7C6;
  --paper:      #FBF9F5;
  --ink:        #18211B;
  --ink-soft:   #4A5449;
  --pine:       #223D2D;
  --pine-deep:  #142219;
  --sage:       #5E7A63;
  --brass:      #96752B;
  --brass-lite: #CBA85C;
  --line:       rgba(24, 33, 27, 0.14);
  --line-soft:  rgba(24, 33, 27, 0.08);
  --on-dark:    rgba(243, 239, 231, 0.8);

  --display: "Spectral", Georgia, serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --pad:  clamp(1rem, 5vw, 2.5rem);
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
em.accent, .accent { color: var(--pine); font-style: italic; }

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 50ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .95rem/1.2 var(--body);
  padding: .9em 1.4em; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-primary { background: var(--pine); color: var(--stone); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #7E6224; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--stone); color: var(--pine-deep); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { color: var(--pine); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 239, 231, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65em; text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border: 1.5px solid var(--pine); border-radius: 50%;
  display: grid; place-items: center; font: 600 .82rem var(--display); color: var(--pine); flex: none;
}
.brand-text { font: 600 1.15rem/1.1 var(--display); display: flex; flex-direction: column; }
.brand-text small { font: 500 .66rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass-lite); }
.nav-call { padding: .7em 1.1em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.25rem; display: none;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--pine); font-weight: 600; }
  .nav-call { margin-top: 1rem; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-paper { background: var(--paper); }
.bg-stone2 { background: var(--stone-2); }
.bg-pine { background: var(--pine); color: var(--stone); }
.bg-deep { background: var(--pine-deep); color: var(--stone); }
.bg-pine h2, .bg-deep h2, .bg-pine h3, .bg-deep h3 { color: var(--stone); }
.bg-pine .eyebrow, .bg-deep .eyebrow { color: var(--brass-lite); }
.bg-pine .lede, .bg-deep .lede, .bg-pine .muted, .bg-deep .muted { color: var(--on-dark); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head p { margin-top: 1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-2.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 2rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-soft); }
.hero-note span { display: inline-flex; align-items: center; gap: .4em; }
.hero-note svg { color: var(--brass); }
.hero-photo { position: relative; justify-self: end; width: 100%; max-width: 410px; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(20,34,25,.55); }
.hero-photo::before { content: ""; position: absolute; top: -14px; right: -14px; width: 62%; height: 68%; border: 1px solid var(--brass-lite); border-radius: var(--radius); }
.hero-photo::after { content: ""; position: absolute; bottom: -16px; left: -16px; width: 44%; height: 40%; background: var(--stone-3); border-radius: var(--radius); }
.photo-badge {
  position: absolute; z-index: 2; left: -12px; bottom: 22px;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--pine); color: var(--stone); font-size: .74rem; font-weight: 600;
  padding: .55rem .9rem; border-radius: 40px; box-shadow: 0 10px 24px -12px rgba(20,34,25,.6);
}
.photo-badge svg { color: var(--brass-lite); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; pointer-events: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 300px; justify-self: center; margin-top: 1rem; }
  .photo-badge { left: 10px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: .45em; max-width: 20ch; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Proof strip ---------- */
.stats { background: var(--pine); color: var(--stone); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1.2rem; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat .num { font: 500 clamp(1.8rem, 3.5vw, 2.5rem)/1.1 var(--display); color: var(--brass-lite); }
.stat .lbl { font-size: .82rem; color: var(--on-dark); margin-top: .45em; }
@media (max-width: 760px) {
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 1.6rem .8rem; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }
.card .ic {
  width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: var(--stone);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
a.card { text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(24,33,27,.35); }
a.card .more { margin-top: 1rem; color: var(--pine); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .35em; align-items: center; }

/* Win stories */
.win { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; }
.win .big { font: 500 clamp(2rem, 4vw, 2.6rem)/1 var(--display); color: var(--brass-lite); }
.win .what { font-weight: 600; margin: .6rem 0 .8rem; color: var(--stone); }
.win blockquote { font: 400 1.02rem/1.55 var(--display); color: var(--on-dark); }
.win cite { display: block; margin-top: .8rem; font-style: normal; font-size: .82rem; color: rgba(243,239,231,.6); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 500 1.9rem/1 var(--display); color: var(--brass);
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bg-pine .checks li::before, .bg-deep .checks li::before { background-color: var(--brass); }

/* ---------- Prose ---------- */
.prose p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 66ch; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--pine); font-weight: 600; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { border: 1px solid var(--line); border-radius: 40px; padding: .45em 1em; font-size: .88rem; background: var(--paper); text-decoration: none; }
a.chip:hover { border-color: var(--pine); color: var(--pine); }
.award {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem;
  border: 1px solid var(--brass-lite); border-radius: 40px; font-size: .8rem; font-weight: 600;
  color: var(--brass); background: rgba(150,117,43,.07);
}

/* ---------- Reviews ---------- */
.rating-pill {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.16); border-radius: 40px; padding: .5rem 1.1rem; margin-bottom: 2rem;
}
.stars { color: var(--brass-lite); letter-spacing: .12em; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rev { display: flex; flex-direction: column; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; }
.rev p { font: 400 1.06rem/1.55 var(--display); color: var(--stone); margin: .8rem 0 1.2rem; }
.rev .who { margin-top: auto; font-size: .85rem; color: rgba(243,239,231,.68); }
.rev-light .rev { background: var(--paper); border-color: var(--line-soft); }
.rev-light .rev p { color: var(--ink); }
.rev-light .rev .who { color: var(--ink-soft); }
.rev-light .stars { color: var(--brass); }
@media (max-width: 960px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font: 500 1.18rem/1.35 var(--display); color: var(--pine);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font: 400 1.6rem var(--body); color: var(--brass); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { color: var(--ink-soft); padding: 0 0 1.4rem; max-width: 68ch; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 24px 50px -30px rgba(20,34,25,.4); color: var(--ink);
}
.form-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.form-card .sub { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem var(--body); color: var(--ink);
  padding: .85em .95em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field.invalid input { border-color: #B3412F; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row label {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 40px; padding: .5em 1em; font-size: .9rem; font-weight: 500; background: #fff;
}
.choice-row input { accent-color: var(--pine); width: auto; padding: 0; margin: 0; }
.choice-row label:has(input:checked) { border-color: var(--pine); background: rgba(34,61,45,.06); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: .85rem; }
.form-error { display: none; background: #FBEAE6; color: #7A2A1E; border-radius: var(--radius); padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.form-error.show { display: block; }
.form-done { display: none; text-align: center; padding: 1rem 0; }
.form-done .ok { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--pine); color: var(--stone); display: grid; place-items: center; }
.form-done h3 { margin-bottom: .5rem; }
.form-done p { color: var(--ink-soft); margin-bottom: 1.2rem; }
form.sent > *:not(.form-done) { display: none; }
form.sent .form-done { display: block; }

/* ---------- Contact methods ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.method:hover { border-color: var(--pine); transform: translateY(-2px); }
.method svg { color: var(--brass); margin-bottom: .4rem; }
.method strong { font: 500 1.2rem var(--display); }
.method span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--pine-deep); color: var(--stone); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: var(--stone); font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 24ch; }
.cta-band p { color: var(--on-dark); margin-top: .5rem; }

/* ---------- About photo ---------- */
.portrait { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
footer.site { background: var(--pine-deep); color: var(--on-dark); padding: 3.5rem 0 2.5rem; font-size: .9rem; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--stone); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: .5rem; }
.brand-f { font: 500 1.4rem var(--display); color: var(--stone); }
.foot-tag { margin: .4rem 0 1rem; max-width: 34ch; }
.foot-contact { line-height: 1.9; }
.foot-h { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lite); margin-bottom: .3rem; }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; line-height: 1.8; font-size: .82rem; }
.foot-legal p + p { margin-top: .6rem; }
.eho { color: var(--brass-lite); font-weight: 600; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Mobile quick-contact bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .95rem .5rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--pine); }
  .action-bar a + a { border-left: 1px solid var(--line-soft); }
  .action-bar a.hl { background: var(--pine); color: var(--stone); }
  body { padding-bottom: 60px; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Big number on stat cards */
.stat-big { font: 500 clamp(2rem, 4vw, 2.6rem)/1 var(--display); color: var(--brass); margin-bottom: .8rem; }
