/* =========================================================
   Hearth Realty Group — Design System
   Palette: warm linen bg, deep forest green anchor,
   honey gold accent, brick secondary accent.
   Display: Fraunces / Body: Nunito Sans / Data: JetBrains Mono
   Signature: "Rootline" branching motif — home as something
   a family grows roots into.
   ========================================================= */

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

:root{
  --bg: #F3F7F8;
  --bg-card: #FFFFFF;
  --bg-card-alt: #E7F1F0;
  --forest: #28288C;
  --forest-light: #3F3FAE;
  --honey: #00A9E0;
  --honey-soft: #A3D6CC;
  --brick: #1B8F87;
  --sand: #D9C79E;
  --ink: #1C2B33;
  --ink-soft: #52666D;
  --line: #D7E6E4;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(47,74,61,0.10);
  --max-w: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p{ margin:0 0 1em; color: var(--ink-soft); }

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:16px; height:1px;
  background: var(--brick);
  display:inline-block;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor:pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover{ background: var(--forest-light); transform: translateY(-1px); }
.btn-outline{
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover{ background: var(--forest); color: var(--white); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(245,239,224,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--forest);
}
.brand-mark{ width:30px; height:30px; }
.brand-logo{
  height: 48px;
  width: auto;
  display:block;
}
@media (max-width: 500px){
  .brand-logo{ height: 38px; }
}
.nav-links{
  display:flex; align-items:center; gap: 30px;
  list-style:none; margin:0; padding:0;
  font-weight: 700;
  font-size: 15px;
}
.nav-links a{ color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active{ color: var(--forest); border-bottom-color: var(--honey); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-toggle{ display:none; }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{
    display:inline-flex; background:none; border:none; cursor:pointer;
    color: var(--forest);
  }
}

/* ---------- Hero ---------- */
.hero{
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items:center;
}
.hero h1{
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero h1 em{
  font-style: normal;
  color: var(--brick);
}
.hero-sub{ font-size: 18px; max-width: 46ch; margin-bottom: 28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 34px;}
.hero-stats{
  display:flex; gap: 34px; flex-wrap: wrap;
}
.stat-num{
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700; color: var(--forest);
}
.stat-label{
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.rootline-art{ width:100%; height:auto; }

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

/* ---------- Section scaffolding ---------- */
.section{ padding: 72px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-alt{ background: var(--bg-card-alt); }
.divider-root{ display:block; width:100%; height:34px; margin: 0 auto; }
.wave-divider{
  display:block;
  width:100%;
  height:40px;
  line-height:0;
}
.wave-divider svg{ display:block; width:100%; height:100%; }

/* ---------- Neighborhood / listing cards ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } .grid-4{grid-template-columns:1fr 1fr;} }
@media (max-width: 560px){ .grid-3{ grid-template-columns: 1fr; } .grid-4{grid-template-columns:1fr;} }

.card{
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(47,74,61,0.14); }
.card-media{
  height: 170px;
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.card-media svg{ width: 64px; height:64px; opacity:.85; }
.card-tag{
  position:absolute; top:12px; left:12px;
  background: var(--honey);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: 11px; font-weight:700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing:.04em;
}
.card-body{ padding: 20px; }
.card-body h3{ font-size: 19px; margin-bottom:6px; }
.card-meta{
  display:flex; gap:14px; margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--forest);
  font-weight: 600;
}

/* ---------- Process timeline (genuine sequence) ---------- */
.timeline{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px){ .timeline{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .timeline{ grid-template-columns: 1fr; } }
.step{ position:relative; padding-top: 8px; }
.step-num{
  font-family: var(--font-mono);
  font-size: 13px; font-weight:700;
  color: var(--white);
  background: var(--forest);
  width: 30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 14px;
}
.step h4{ font-size:18px; margin-bottom:6px; }

/* ---------- Testimonial ---------- */
.testimonial{
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
}
.testimonial p{ color: var(--honey-soft); font-family: var(--font-display); font-size: 24px; line-height:1.4; margin-bottom: 18px;}
.testimonial cite{ font-style:normal; font-weight:700; color: var(--white); font-size:14px; }

/* ---------- Photo placeholder slots (Area page) ---------- */
.photo-slot{
  border: 2px dashed var(--forest-light);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 12px, var(--bg-card-alt) 12px, var(--bg-card-alt) 24px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  padding: 16px;
}
.photo-slot span{ max-width: 22ch; }
.photo-slot-wide{ aspect-ratio: 21/8; }
.photo-slot-card{ aspect-ratio: 4/3; border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; }

/* ---------- IDX placeholder ---------- */
.idx-slot{
  border: 2px dashed var(--forest-light);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 12px, var(--bg-card-alt) 12px, var(--bg-card-alt) 24px);
  padding: 48px 28px;
  text-align:center;
}
.idx-slot h3{ margin-bottom: 8px; }
.idx-slot code{
  display:inline-block;
  background: var(--forest);
  color: var(--honey-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 14px;
}

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

.overline-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
  display:block;
  margin-bottom: 6px;
}

/* ---------- Agent spotlight ---------- */
.agent-spotlight{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items:center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
@media (max-width: 760px){
  .agent-spotlight{ grid-template-columns: 1fr; }
}
.agent-photo{
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 2/3;
}
.agent-spotlight h2{ margin-bottom:4px; }
.agent-title{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brick);
  font-weight: 700;
  margin-bottom: 16px;
  display:block;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--forest);
  color: var(--honey-soft);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width:700px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4{ color: var(--white); font-size:15px; margin-bottom: 14px; }
.site-footer a, .site-footer p{ color: var(--honey-soft); }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top: 22px; font-size: 13px; color: rgba(241,202,139,0.7);
}

/* ---------- Page hero (secondary pages) ---------- */
.page-hero{ padding: 52px 0 40px; }
.page-hero .eyebrow{ margin-bottom: 14px; }
.page-hero h1{ font-size: clamp(32px, 4.5vw, 46px); }

/* ---------- Utility ---------- */
.center{ text-align:center; }
.mt-40{ margin-top:40px; }
