/* ══════════════════════════════════════════════════
   Alan Shao · Smart Sold Realty — Shared Styles
   ══════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }

/* ── Colors ── */
:root {
  --brand: #A53A30;
  --brand-hover: #8C3028;
  --gold: #C5954C;
  --dark: #1a1a2e;
  --gray-100: #f7f8fa;
  --gray-200: #edf2f7;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-800: #2d3748;
}

/* ── Language Toggle ── */
[lang="en"] { display: none; }
body.en-mode [lang="zh"] { display: none; }
body.en-mode [lang="en"] { display: inline; }
body.en-mode [lang="en"].block { display: block; }

/* ── Nav ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
  position: relative;
}
nav .logo {
  font-weight: 800; font-size: 0.95rem; color: var(--dark);
  text-decoration: none; letter-spacing: -0.02em; white-space: nowrap;
}
.logo-smart { color: var(--brand); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 4px;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-size: 0.82rem;
  font-weight: 500; padding: 6px 12px; border-radius: 6px;
  transition: all .15s;
}
.nav-links a:hover { color: var(--brand); background: rgba(165,58,48,0.05); }
.nav-links .nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 8px 18px; font-weight: 600; font-size: 0.82rem;
}
.nav-links .nav-cta:hover { background: var(--brand-hover); }
.lang-switch {
  font-size: 0.72rem; color: var(--brand); font-weight: 600;
  text-decoration: none; padding: 3px 8px; cursor: pointer;
  border: 1px solid var(--brand); border-radius: 4px; background: none;
}
.lang-switch:hover { background: var(--brand); color: #fff; }
.nav-links .nav-active {
  color: var(--brand); background: rgba(165,58,48,0.06);
  font-weight: 600;
}

/* ── Hero ── */
.page-hero {
  padding: 56px 24px 48px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a53a30' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-hero-badge {
  display: inline-block;
  background: rgba(165,58,48,0.08); color: var(--brand);
  padding: 4px 14px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 12px;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.page-hero h1 .highlight { color: var(--brand); }
.page-hero p {
  font-size: 1rem; color: var(--gray-500);
  margin: 12px auto 20px; max-width: 520px;
}
.page-hero-phone { margin-top: 8px; font-size: 0.9rem; color: var(--gray-500); }
.page-hero-phone a { color: var(--dark); font-weight: 700; text-decoration: none; }
.page-hero-phone a:hover { color: var(--brand); }

/* ── Section ── */
.section {
  padding: 60px 24px;
}
.section-alt { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(135deg, var(--dark), #2d2d4a);
  color: #fff;
}
.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); margin-bottom: 8px;
}
.section-dark .section-label { color: rgba(255,255,255,0.5); }
.section-title { font-size: 1.4rem; font-weight: 700; }
.section-dark .section-title { color: #fff; }
.section-desc { font-size: 0.9rem; color: var(--gray-500); margin-top: 8px; }
.section-dark .section-desc { color: rgba(255,255,255,0.6); }

/* ── Cards ── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 28px; transition: all .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.05); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

/* ── Tool Cards (for Buy/Sell tool callouts) ── */
.tool-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px 24px; text-decoration: none;
  color: inherit; transition: all .2s;
}
.tool-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); border-color: var(--brand); }
.tool-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.tool-card-content h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.tool-card-content p { font-size: 0.8rem; color: var(--gray-500); margin: 0; }

/* ── Steps ── */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 0.85rem; color: var(--gray-600); }

/* ── Data Wall (homepage) ── */
.datawall {
  padding: 72px 24px;
  background: linear-gradient(135deg, var(--dark), #2d2d4a);
  color: #fff; text-align: center;
}
.datawall .section-label { color: rgba(255,255,255,0.5); }
.datawall .section-title { color: #fff; }
.datawall .section-desc { color: rgba(255,255,255,0.6); }
.dw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 700px; margin: 24px auto 0; }
.dw-item { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 20px 12px; }
.dw-num { font-size: 1.5rem; font-weight: 700; color: #68d391; }
.dw-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.datawall .btn { margin-top: 20px; display: inline-block; border: 1px solid rgba(255,255,255,0.2); color: #fff; background: transparent; }
.datawall .btn:hover { background: rgba(255,255,255,0.08); }

/* ── Stats Grid ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gray-200); max-width: 700px; margin: 0 auto;
}
.stat {
  background: #fff; padding: 28px 16px; text-align: center;
}
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
  transition: all .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(165,58,48,0.3); }
.btn-secondary { background: #fff; color: var(--dark); border: 1px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.2); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }

/* ── CTA ── */
.cta-section {
  padding: 60px 24px; text-align: center;
  background: linear-gradient(135deg, var(--dark), #2d2d4a);
  color: #fff;
}
.cta-section h2 { font-size: 1.4rem; font-weight: 700; }
.cta-section p { color: rgba(255,255,255,0.6); margin: 8px auto 24px; max-width: 450px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Social Proof / Testimonial ── */
.testimonial-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 28px; text-align: left;
}
.testimonial-card p { font-size: 0.88rem; color: var(--gray-600); font-style: italic; line-height: 1.7; }
.testimonial-author { margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--dark); }

/* ── MLS Search Embed ── */
.mls-embed { width: 100%; height: 500px; border: none; border-radius: 12px; }

/* ── Footer ── */
footer {
  padding: 40px 24px 28px;
  background: var(--dark); color: rgba(255,255,255,0.4);
  text-align: center; font-size: 0.8rem;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: #fff; }
footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer .links a { font-size: 0.82rem; }
footer p { margin-top: 4px; }
footer .footer-sm { font-size: 0.72rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { padding: 40px 16px 32px; }
  .section { padding: 40px 16px; }
  .cta-section { padding: 40px 16px; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.15rem; }
  .container, .container-narrow { padding: 0 16px; }
  .tool-card { flex-direction: column; text-align: center; }
  .dw-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 1.4rem; }
  .stat { padding: 20px 12px; }
  .datawall { padding: 48px 16px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 6px;
    border-radius: 0 0 12px 12px; z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; width: 100%; padding: 10px 14px; }
  .page-hero h1 { font-size: 1.35rem; }
  .page-hero p { font-size: 0.88rem; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .step { gap: 14px; padding: 18px 0; }
  .step-num { width: 32px; height: 32px; font-size: 0.85rem; }
  .dw-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
