/* Tim Chong Realtor - shared styles */
:root {
  --ink: #1c2b2a;
  --ink-soft: #4a5a58;
  --paper: #faf8f4;
  --paper-alt: #f1ede4;
  --accent: #2f4a3e;
  --accent-light: #5c7c68;
  --gold: #b08d57;
  --line: #e2ddd0;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand small {
  font-weight: 400; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-light); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: var(--white) !important;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white) !important; }
.btn-outline {
  background: transparent; color: var(--accent) !important; border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white) !important; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,26,0.55), rgba(20,30,26,0.72));
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.78rem; color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 18px;
}
.hero p { font-size: 1.1rem; color: #eee; max-width: 560px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero.small { min-height: 42vh; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.76rem; color: var(--accent-light); margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28,43,42,0.08); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; }
.card-link { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 0.86rem; }

.cta-band {
  background: var(--accent); color: var(--white); text-align: center; padding: 64px 24px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dfe8e2; max-width: 560px; margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9ddd6; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #bfc8bf; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  font-size: 0.78rem; color: #98a198; text-align: center; line-height: 1.6;
}

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 560px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem; font-weight: 600; display: block; margin: 14px 0 6px; }
input, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.95rem; background: var(--paper);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 400; }
.form-submit { margin-top: 10px; width: 100%; text-align: center; border: none; cursor: pointer; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }

/* Breadcrumb / page hero */
.page-hero {
  padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; color: var(--accent-light); display: block; margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* Blog / neighborhood article */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-meta {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.82rem; color: var(--ink-soft);
  text-align: center; margin-bottom: 8px;
}
.article-body h2 { margin-top: 1.6em; font-size: 1.35rem; }
.article-body h3 { margin-top: 1.2em; font-size: 1.1rem; }
.tag-badge {
  display: inline-block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; background: var(--paper-alt);
  color: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* Listing page */
.listing-banner {
  background: #7a5a2a; color: var(--white); text-align: center; padding: 10px 20px;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.listing-price { font-size: 1.6rem; color: var(--accent); font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; }
.listing-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 30px; font-family: "Helvetica Neue", Arial, sans-serif; }
.listing-facts div strong { display: block; font-size: 1.25rem; color: var(--ink); }
.listing-facts div span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.photo-grid img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.feature-list { columns: 2; gap: 32px; margin: 20px 0; }
.feature-list li { margin-bottom: 8px; break-inside: avoid; }

/* Neighborhood list on hub */
.neigh-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.neigh-links a {
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 0.85rem;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--ink-soft);
}
.neigh-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { columns: 1; }
  section { padding: 52px 0; }
}

/* ===== v2 additions ===== */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; }
.eyebrow { font-family: "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--accent-light); display: block; margin-bottom: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.text-link { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: .9rem; }

/* nav toggle + mobile menu */
.nav-toggle { background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav-open .nav-links { display: flex !important; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* video hero + A/B variants */
.hero-video { overflow: hidden; background: #1c2b2a url("/media/hero-poster.jpg") center/cover; min-height: 86vh; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video::before { z-index: 1; }
.hero-video .hero-content { z-index: 2; max-width: 780px; }
.hero-video h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
@media (prefers-reduced-motion: reduce) { .hero-media { display: none; } .hero-video { background: url("/media/hero-poster.jpg") center/cover; } }

.trust-strip { background: var(--ink); color: #d9ddd6; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .82rem; letter-spacing: .04em; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding-top: 16px; padding-bottom: 16px; }

.path-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.path-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28,43,42,.08); border-color: var(--accent-light); color: var(--ink); }
.path-card p { color: var(--ink-soft); }
.grid-2.paths { align-items: stretch; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.about-teaser img, .about-grid img { border-radius: var(--radius); width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.resource-list a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: .95rem; color: var(--ink); }
.resource-list a:hover { border-color: var(--accent-light); color: var(--accent); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent-light); }
.faq[open] summary::after { content: "\2212"; }
.faq > div { padding: 0 0 18px; color: var(--ink-soft); }

select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .95rem; background: var(--paper); }
.form-title { font-size: 1.3rem; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; max-width: 620px; }
.form-status { font-family: "Helvetica Neue", Arial, sans-serif; font-size: .9rem; margin: 12px 0 0; min-height: 1em; }
.form-status.error { color: #9b2c1f; }
.form-fallback { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-size: .92rem; }
input:invalid:focus, select:invalid:focus { border-color: #9b2c1f; }

.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.hv { padding: 64px 0; }
.hv-grid { align-items: start; }
.hv h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.hv .lead { margin-left: 0; }
.hv-agent { display: flex; gap: 14px; align-items: center; margin-top: 26px; }
.hv-agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.hv-agent p { margin: 0; font-size: .92rem; }

.seller-cta { background: var(--paper-alt); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 28px; margin: 44px 0 20px; }
.seller-cta h2 { font-size: 1.3rem; margin-top: 0 !important; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.author-box { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0; }
.author-box p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-date { font-family: "Helvetica Neue", Arial, sans-serif; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.card-ph { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--paper-alt), var(--line)); }
.card img { height: auto; }

.footer-h { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer { padding-bottom: 90px; }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .mobile-cta a { padding: 15px 10px; text-align: center; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: .95rem; color: var(--accent); }
  .mobile-cta a.primary { background: var(--accent); color: #fff; }
  .steps { grid-template-columns: 1fr; }
  .hero-video { min-height: 78vh; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
@media (min-width: 761px) and (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nav-links { display: none; } }
.thanks { padding: 90px 0; }
h1, h2 { line-height: 1.18; }
.btn-light { background: #fff; color: var(--accent) !important; border-color: #fff; }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.hero-actions .btn { min-width: 250px; }
select:invalid, select option[value=""] { color: var(--ink-soft); }
.hero .h1 { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.18; margin: 0 0 18px; letter-spacing: .01em; }
/* RealScout widgets, styled to the site palette */
realscout-home-value {
  --rs-hvw-background-color: #ffffff;
  --rs-hvw-title-color: #1c2b2a;
  --rs-hvw-subtitle-color: rgba(28, 43, 42, 0.6);
  --rs-hvw-input-text-color: inherit;
  --rs-hvw-primary-button-text-color: #ffffff;
  --rs-hvw-primary-button-color: #2f4a3e;
  --rs-hvw-secondary-button-text-color: #2f4a3e;
  --rs-hvw-secondary-button-color: #ffffff;
  --rs-hvw-widget-width: auto;
}
realscout-advanced-search {
  --rs-as-button-text-color: #ffffff;
  --rs-as-background-color: #ffffff;
  --rs-as-button-color: #2f4a3e;
  --rs-as-widget-width: 100% !important;
}
.rs-wrap { max-width: 720px; margin: 0 auto; min-height: 120px; }
realscout-your-listings { --rs-listing-divider-color: #5c7c68; width: 100%; display: block; }
