/* ============================================
   Real Estate MarTech — Neocities Site
   Design: Professional B2B — dark nav, clean white body
   Palette: Deep navy, warm orange accent, slate grays
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');
/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f5f6f8;
  color: #1e2a3a;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #0f1c2e;
  line-height: 1.3;
}
h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid #e4e8ef; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; color: #1e2a3a; }
p  { margin-bottom: 1.05rem; }
a { color: #e07b39; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4622a; text-decoration: underline; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.45rem; }
strong { color: #0f1c2e; font-weight: 600; }
/* --- Layout --- */
.site-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  flex: 1;
  width: 100%;
}
/* --- Navigation --- */
.site-nav {
  background: #0f1c2e;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: #e07b39; text-decoration: none; }
.nav-brand .accent { color: #e07b39; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: 5px;
  transition: all 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
  background: rgba(224, 123, 57, 0.2);
  text-decoration: none;
}
/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0f1c2e 0%, #1a3050 60%, #1e3d63 100%);
  color: #fff;
  padding: 3.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 40px;
  background: #f5f6f8;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(224, 123, 57, 0.2);
  border: 1px solid rgba(224, 123, 57, 0.4);
  color: #f0a070;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.hero h1 em { color: #e07b39; font-style: normal; }
.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}
/* --- Page Header (inner pages) --- */
.page-header {
  background: #0f1c2e;
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
  margin-bottom: 0;
}
.page-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.page-header h1 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.page-header .subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}
/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.82rem;
  color: #7a8a9a;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: #e07b39; }
.breadcrumb span { margin: 0 0.4rem; color: #b0bec5; }
/* --- Article meta --- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}
.tag {
  display: inline-block;
  background: #eef2f8;
  color: #1e2a3a;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.orange { background: #fef0e6; color: #c4622a; }
.article-date { font-size: 0.82rem; color: #8a9ab0; }
/* --- Content body wrapper --- */
.content-body {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* --- Callout / Info boxes --- */
.callout {
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.callout.blue {
  background: #eef4fb;
  border-left: 4px solid #2d6fa3;
}
.callout.orange {
  background: #fef5ed;
  border-left: 4px solid #e07b39;
}
.callout.green {
  background: #edf8f0;
  border-left: 4px solid #2e9e58;
}
.callout.dark {
  background: #0f1c2e;
  border-left: 4px solid #e07b39;
  color: rgba(255,255,255,0.87);
}
.callout.dark strong { color: #fff; }
.callout strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.card {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 1.4rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #e07b39;
  text-decoration: none;
  color: inherit;
}
.card .card-icon { font-size: 1.6rem; margin-bottom: 0.65rem; display: block; }
.card h3 { margin-top: 0; margin-bottom: 0.4rem; font-size: 1rem; color: #0f1c2e; }
.card p  { font-size: 0.9rem; color: #5a6a7a; margin-bottom: 0; line-height: 1.6; }
/* --- Stats strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.stat-item {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-item .stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #e07b39;
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: #7a8a9a;
  line-height: 1.35;
}
/* --- Table --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
thead { background: #0f1c2e; color: #fff; }
th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid #edf0f5; color: #2a3a4a; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
/* --- Funnel diagram (CSS) --- */
.funnel-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: funnel;
}
.funnel-steps li {
  counter-increment: funnel;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  position: relative;
  border-left: 4px solid #e07b39;
}
.funnel-steps li::before {
  content: counter(funnel);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #e07b39;
  min-width: 1.5rem;
  line-height: 1.5;
}
.funnel-steps li h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: #0f1c2e;
}
.funnel-steps li p {
  font-size: 0.87rem;
  color: #5a6a7a;
  margin-bottom: 0;
  line-height: 1.5;
}
/* --- Comparison grid --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.comp-col {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  padding: 1.25rem;
}
.comp-col.highlight { border-color: #e07b39; background: #fef8f3; }
.comp-col h4 { font-size: 0.9rem; margin-bottom: 0.75rem; color: #0f1c2e; }
.comp-col ul { margin-bottom: 0; }
.comp-col ul li { font-size: 0.88rem; color: #4a5a6a; }
/* --- Footer --- */
.site-footer {
  background: #0f1c2e;
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.83rem;
  margin-top: auto;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #e07b39; text-decoration: none; }
.footer-links { margin-top: 0.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
/* --- Back to top --- */
.back-to-top {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.25rem;
  background: #e07b39;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.back-to-top:hover { background: #c4622a; color: #fff; text-decoration: none; }
/* --- Responsive --- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 599px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; padding-bottom: 0.5rem; }
  .hero { padding: 2.25rem 1rem 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .content-body { padding: 1.4rem 1.1rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.6rem 0.75rem; }
}
