:root {
  --ink: #1c2430;
  --ink-soft: #55606e;
  --accent: #0e7c66;
  --accent-dark: #0a5f4e;
  --accent-light: #e6f4f1;
  --gold: #c99a3c;
  --bg: #faf9f6;
  --card: #ffffff;
  --line: #e6e3dc;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.logo-3 { color: var(--gold); font-weight: 900; margin-right: 1px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { display: block; width: 26px; height: 26px; }
.logo-img { height: 36px; width: auto; display: block; }
footer .logo-img { margin-bottom: 10px; }
@media (max-width: 640px) { .logo-img { height: 28px; } }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-sm { padding: 9px 20px; font-size: .9rem; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--ink); font-family: inherit; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(28,36,48,.15); min-width: 150px; padding: 6px; display: none; z-index: 100; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 9px 14px; border: none; background: none; font-size: .9rem; cursor: pointer; border-radius: 8px; color: var(--ink); font-family: inherit; }
.lang-menu button:hover { background: var(--accent-light); color: var(--accent-dark); }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1.18fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero-eyebrow { display: inline-block; background: var(--accent-light); color: var(--accent-dark); font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: 3rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; color: var(--ink-soft); font-size: .9rem; flex-wrap: wrap; }
.hero-trust b { color: var(--ink); }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(28,36,48,.18); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }

/* Foshan edge 三格数据条 */
.edge { padding: 48px 0 60px; }
.edge-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edge-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.edge-val { font-size: 2.2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; margin-bottom: 8px; }
.edge-desc { color: var(--ink-soft); font-size: .92rem; }

/* Hero photo stack 照片叠堆 */
.hero-img { border-radius: var(--radius); }
.hero-stack { position: relative; aspect-ratio: 4/3; }
.hero-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 14px;
  border: 5px solid #fff; box-shadow: 0 14px 34px rgba(28,36,48,.28);
  transition: transform .85s cubic-bezier(.22,.7,.3,1), opacity .85s ease;
  will-change: transform;
}
.hero-stack img.fly { transform: translateX(125%) rotate(16deg) !important; opacity: 0; }
.hs-tag { position: absolute; bottom: 16px; left: 16px; background: rgba(15,20,26,.62); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 60; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title h2 { font-size: 2.1rem; letter-spacing: -.02em; margin-bottom: 12px; }
.section-title p { color: var(--ink-soft); font-size: 1.05rem; }

/* Pain points */
.pain { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.pain-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.pain-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.pain-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pain-card p { color: var(--ink-soft); font-size: .92rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* Pricing */
.pricing { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.popular { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.03); box-shadow: 0 20px 50px rgba(14,124,102,.28); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .for { font-size: .85rem; opacity: .75; margin-bottom: 16px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.plan .price small { font-size: .9rem; font-weight: 600; opacity: .7; }
.plan .note { font-size: .8rem; opacity: .7; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: .93rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan.popular li::before { color: #b8f0e4; }
.plan .btn { text-align: center; width: 100%; }
.plan.popular .btn-primary { background: #fff; color: var(--accent-dark); }
.plan.popular .btn-primary:hover { background: #f0f0f0; }

/* Single plan + agent fee box */
.single-plan { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.single-plan .plan { width: 100%; }
.agent-fee-box { max-width: 560px; width: 100%; background: var(--accent-light); border: 1px solid #bfe0d8; border-radius: var(--radius); padding: 26px 28px; }
.agent-fee-box h4 { font-size: 1.02rem; margin-bottom: 10px; color: var(--accent-dark); }
.agent-fee-box p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 10px; }
.agent-fee-box .quote-promise { border-top: 1px dashed #bfe0d8; padding-top: 12px; margin-bottom: 0; }
.agent-fee-box b { color: var(--ink); }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 26px; }
.listing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.listing:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,36,48,.12); }
.listing img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.listing .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.listing .loc { font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.listing h3 { font-size: 1.1rem; margin-bottom: 8px; }
.listing .desc { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.listing .meta { display: flex; gap: 14px; margin: 14px 0; font-size: .85rem; color: var(--ink-soft); }
.listing .rent { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.listing .rent b { font-size: 1.25rem; }
.listing .rent span { font-size: .8rem; color: var(--ink-soft); }
.listing-note { text-align: center; margin-top: 34px; color: var(--ink-soft); font-size: .92rem; }

/* Gallery button + lightbox */
.gallery-btn { margin-top: 12px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--accent-dark); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s; font-family: inherit; }
.gallery-btn:hover { background: var(--accent-light); }
.g-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15,20,26,.96); display: flex; flex-direction: column; }
.g-overlay[hidden] { display: none; }
.g-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: #fff; }
.g-title { font-weight: 700; font-size: .95rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-count { color: #9fb3ab; font-size: .9rem; }
.g-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.g-close:hover { background: rgba(255,255,255,.12); }
.g-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 8px; }
.g-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; font-size: 2.4rem; width: 52px; height: 72px; border-radius: 12px; cursor: pointer; line-height: 1; }
.g-nav:hover { background: rgba(255,255,255,.28); }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-thumbs { display: flex; gap: 8px; padding: 12px 20px 18px; overflow-x: auto; }
.g-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .5; border: 2px solid transparent; flex-shrink: 0; }
.g-thumbs img.active { opacity: 1; border-color: #3fc4a6; }

/* More residences 小卡网格（备用） */
.more-residences { background: #fff; border-top: 1px solid var(--line); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details .a { padding: 0 22px 18px; color: var(--ink-soft); font-size: .95rem; }

/* Form */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.9rem; margin-bottom: 14px; letter-spacing: -.02em; }
.contact-info p { color: var(--ink-soft); margin-bottom: 18px; }
.contact-card { max-width: 720px; margin: 0 auto; text-align: center; padding: 8px 0 16px; }
.contact-card h2 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: 14px; }
.contact-card p { color: var(--ink-soft); }
.chat-h { font-size: 1.05rem; margin: 24px 0 16px; color: var(--accent); font-weight: 700; }
.chat-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.chat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.chat-btn svg { width: 22px; height: 22px; fill: #fff; flex: none; }
.chat-btn.wa { background: #25D366; }
.chat-btn.wa:hover { background: #1ebe5b; }
.chat-btn.tg { background: #229ED9; }
.chat-btn.tg:hover { background: #1b8cc0; }
.chat-btn.live { background: var(--accent); border: 0; cursor: pointer; font-family: inherit; }
.chat-btn.live:hover { background: var(--accent-ink, #174a37); }
.chat-btn[hidden] { display: none !important; }
.chat-note { margin-top: 18px; font-size: .92rem; }
.contact-foot { margin-top: 10px; font-size: .86rem; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 11px 14px; border: 1px solid #cfcac0; border-radius: 10px; font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink); }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #e8f7ee; color: #0a5f4e; border: 1px solid #bfe8cf; }
.form-msg.err { display: block; background: #fdeceb; color: #a4271b; border: 1px solid #f3c2be; }

/* WhatsApp floating button — bottom-right, pinned to the very bottom edge so it stacks under the SaleSmartly bubble */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.wa-fab:hover { background: #1ebe5b; }
.wa-fab svg { width: 22px; height: 22px; fill: #fff; flex: none; }
.wa-fab[hidden] { display: none; }

/* Footer */
footer { background: var(--ink); color: #aab4c0; padding: 40px 0; font-size: .88rem; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .logo { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 2.2rem; }
  .steps-grid, .price-grid, .listing-grid, .contact-wrap, .edge-bar { grid-template-columns: 1fr; }
  .plan.popular { transform: none; }
  .nav-links a.hide-m { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wa-fab { right: 14px; padding: 10px 14px; font-size: .9rem; }
  .wa-fab svg { width: 19px; height: 19px; }
}
