/* ===== 輕鬆買房 — 全站共用樣式 ===== */
:root {
  --primary: #1f6f54;       /* 沉穩綠 — 安心、值得信賴 */
  --primary-dark: #16513d;
  --primary-light: #2f9270;
  --accent: #e0a93a;        /* 暖金 — 行動呼籲 */
  --accent-dark: #c68f25;
  --ink: #1f2b27;
  --body: #41504b;
  --muted: #6b7a74;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-card: #ffffff;
  --line: #e2eae6;
  --shadow: 0 8px 30px rgba(31, 111, 84, .10);
  --radius: 16px;
  --container: 1140px;
  --pad-x: clamp(1.1rem, 5vw, 3rem);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { color: var(--body); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ===== 按鈕 ===== */
.btn {
  display: inline-block;
  padding: .7em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #3a2c06; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--primary); font-size: 1.25rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { color: var(--body); font-weight: 500; padding: .3rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
}
.nav-cta { display: inline-block; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(15,52,39,.62), rgba(15,52,39,.72)), var(--hero-img, linear-gradient(135deg, var(--primary), var(--primary-dark)));
  background-size: cover; background-position: center;
}
.hero-inner { padding-block: clamp(3.5rem, 9vw, 6.5rem); max-width: 760px; }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,.16); color: #fff;
  padding: .35em 1em; border-radius: 999px; font-size: .9rem; margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 1.8rem; }

/* page hero (內頁) */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.page-hero .container { padding-block: clamp(2.8rem, 7vw, 4.5rem); }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; }

/* ===== Sections ===== */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .05em; display: block; margin-bottom: .5rem; }
.section-head p { color: var(--muted); margin-top: .7rem; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .6rem; }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--primary); font-size: 1.5rem; margin-bottom: 1rem;
}
.card ul { margin-top: .8rem; padding-left: 1.1rem; color: var(--body); }
.card ul li { margin-bottom: .4rem; }

/* split (圖文) */
.split { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split .body p { margin-bottom: 1rem; }
.split ul { list-style: none; }
.split ul li { padding-left: 1.7rem; position: relative; margin-bottom: .6rem; }
.split ul li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* stats */
.stats { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }
.stat .num { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--primary); }
.stat .label { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: .8rem auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-info li { list-style: none; margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.contact-info li span.ic { position: absolute; left: 0; color: var(--primary); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cdd8d3; padding-block: 2.8rem 1.6rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 1.8rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1.05rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .logo { background: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; text-align: center; font-size: .9rem; color: #9fb0aa; }

/* ===== RWD ===== */
@media (max-width: 820px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem var(--pad-x);
    gap: .2rem; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: .6rem; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
