/* ============================================================
   GUIDE REAL ESTATE — Drew Lehr
   Design tokens: warm sage stone + deep eucalyptus + brass
   ============================================================ */

:root {
  /* Color */
  --bg: #EEEFE6;
  --bg-card: #FBFAF5;
  --bg-card-dim: #F3F2EA;
  --ink: #24241D;
  --ink-soft: #56564A;
  --ink-faint: #8B8C7C;
  --forest: #2E4536;
  --forest-dark: #1B2A21;
  --forest-tint: #E4E9E0;
  --brass: #A9814B;
  --brass-dark: #8A6A3B;
  --brass-tint: #EFE3CC;
  --line: #D9D5C4;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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;
  color: var(--forest-dark);
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--brass-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--forest-dark); border-color: var(--forest-dark); }
.btn-outline:hover { background: var(--forest-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest-dark);
}
.brand .brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a.current { color: var(--brass-dark); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  font-weight: 600;
  color: var(--forest-dark);
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest-dark);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-links { 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--pad) 26px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-dark);
  color: var(--white);
}
.hero-topo {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--brass-tint); }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #38513f, #24352a);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Cities strip ---------- */
.cities-strip {
  background: var(--forest);
  color: var(--brass-tint);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cities-strip .track {
  display: inline-flex;
  gap: 40px;
  padding: 13px 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cities-strip .track span { opacity: 0.55; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-tint { background: var(--bg-card-dim); }

.divider-topo {
  height: 44px;
  background: var(--bg);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  border-top: 2px solid var(--forest);
  padding-top: 18px;
}
.step .step-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass-dark);
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial .stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.testimonial p { color: var(--ink); font-style: italic; }
.testimonial .who { color: var(--ink-faint); font-size: 0.85rem; font-style: normal; margin-top: 14px; }

/* ---------- Blog cards ---------- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { box-shadow: 0 12px 28px rgba(27,42,33,0.1); transform: translateY(-2px); }
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--forest-tint), var(--brass-tint));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.85rem;
}
.blog-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card .tag {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-dark); font-weight: 700; margin-bottom: 10px;
}
.blog-card h3 { margin-bottom: 0.5em; }
.blog-card .meta { color: var(--ink-faint); font-size: 0.82rem; margin-top: auto; padding-top: 14px; }
.blog-card a.stretched { position: relative; }
.blog-card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 30px;
}
footer h4 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1em; }
footer a { color: rgba(255,255,255,0.72); }
footer a:hover { color: var(--brass-tint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--white); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--forest-dark);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-topo { opacity: 0.14; }
.page-hero h1 { color: var(--white); position: relative; z-index: 2; }
.page-hero p { color: rgba(255,255,255,0.78); position: relative; z-index: 2; max-width: 60ch; }

/* ---------- Article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body p, .article-body li { color: var(--ink-soft); font-size: 1.05rem; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-meta { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2em; }
.article-figure {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--forest-tint), var(--brass-tint));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.9rem;
  margin: 1.8em 0;
}
.author-box {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-card-dim); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-top: 3em;
}
.author-box .avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--forest-tint); display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.7rem; text-align: center;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--white); font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: left; }
.stat-row .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--forest-dark); font-weight: 600; }
.stat-row .label { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.03em; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }

.placeholder-note {
  font-size: 0.78rem;
  color: var(--brass-dark);
  background: var(--brass-tint);
  border-radius: 6px;
  padding: 3px 9px;
  display: inline-block;
}
