/* ============================================================
   顧好家官網 — 主樣式（亮色版）
   主色：#00A884 (翠綠)  深色：#007A61  淡色：#E0F4EE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #00A884;
  --primary-dk: #007A61;
  --primary-lt: #E0F4EE;
  --bg:         #FFFFFF;
  --bg-alt:     #F5FBF9;
  --surface:    #FFFFFF;
  --text:       #1A2C28;
  --text-sub:   #4A6B62;
  --border:     #C8E8DF;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(0,168,132,.09);
  --shadow-md:  0 6px 32px rgba(0,168,132,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   NAVBAR — 白底
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-logo {
  font-size: 1.4rem; font-weight: 800; color: var(--primary-dk);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; font-weight: 900;
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-sub); text-decoration: none;
  font-size: .95rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 22px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
  font-weight: 700 !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-dk) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s;
}

/* ============================================================
   HERO — 綠色漸層
   ============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #006E56 0%, #00A884 55%, #00BFA5 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 5vw 60px;
  position: relative; overflow: hidden;
}
#hero::before, #hero::after {
  content: ''; position: absolute; border-radius: 50%; opacity: .06;
}
#hero::before {
  width: 600px; height: 600px; background: #fff;
  top: -200px; right: -150px;
}
#hero::after {
  width: 400px; height: 400px; background: #fff;
  bottom: -100px; left: -100px;
}

.hero-inner {
  max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 900; color: #fff; line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: normal; color: #FFF176; }
.hero-text p {
  font-size: 1.1rem; color: rgba(255,255,255,.85);
  margin-bottom: 36px; max-width: 420px; line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; min-height: 48px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: #fff; color: var(--primary-dk);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-primary:hover { background: #F0FAF7; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 240px; height: 480px;
  background: rgba(255,255,255,.12);
  border-radius: 36px; border: 3px solid rgba(255,255,255,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 28px; position: relative; overflow: hidden;
}
.phone-mockup::before {
  content: ''; position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px; background: rgba(255,255,255,.3); border-radius: 3px;
}
.phone-screen-title { font-size: 1.2rem; font-weight: 800; color: #fff; text-align: center; }
.phone-stat {
  width: 100%; background: rgba(255,255,255,.12);
  border-radius: 10px; padding: 14px; text-align: center;
  border: 1px solid rgba(255,255,255,.2);
}
.phone-stat-num { font-size: 1.8rem; font-weight: 900; color: #FFF176; }
.phone-stat-label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 2px; }

.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 24px; align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.78); }
.trust-dot { width: 6px; height: 6px; background: #FFF176; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 88px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block; color: var(--primary); font-size: .82rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--text); line-height: 1.25; margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-sub);
  max-width: 520px; margin: 0 auto; line-height: 1.8;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features { background: var(--bg-alt); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary-lt); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.feature-card p { font-size: .95rem; color: var(--text-sub); line-height: 1.75; }

/* ============================================================
   SERVICE STEPS
   ============================================================ */
#steps { background: var(--bg); }

.steps-wrapper {
  display: flex; flex-direction: column;
  position: relative; max-width: 760px; margin: 0 auto;
}
.steps-wrapper::before {
  content: ''; position: absolute;
  left: 25px; top: 26px; bottom: 26px; width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
}
.step-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 24px; padding: 0 0 40px; position: relative;
}
.step-item:last-child { padding-bottom: 0; }
.step-num-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(0,168,132,.3);
  position: relative; z-index: 1; flex-shrink: 0;
}
.step-body { padding-top: 10px; }
.step-num-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 6px;
}
.step-body h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.step-body p { font-size: .95rem; color: var(--text-sub); line-height: 1.75; }

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: var(--bg-alt); }

.pricing-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; max-width: 860px; margin: 0 auto;
}
.pricing-card {
  border-radius: var(--radius); border: 2px solid var(--border);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  background: var(--surface);
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 8px 36px rgba(0,168,132,.18); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pricing-card-header { padding: 28px 24px 20px; background: var(--text); text-align: center; }
.pricing-card.featured .pricing-card-header { background: var(--primary); }
.pricing-badge {
  display: inline-block; background: rgba(255,255,255,.2); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-bottom: 10px;
}
.pricing-card-header h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.pricing-card-header p { color: rgba(255,255,255,.65); font-size: .85rem; }

.pricing-rows { padding: 4px 0; }
.pricing-row {
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row-label { font-size: .78rem; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: .05em; }
.pricing-row-value { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.pricing-row-value small { display: block; font-weight: 400; font-size: .85rem; color: var(--text-sub); margin-top: 2px; }

.pricing-note { text-align: center; margin-top: 32px; font-size: .9rem; color: var(--text-sub); line-height: 1.9; }
.pricing-note strong { color: var(--primary-dk); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.stat-box {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px 20px; border: 1px solid var(--border); text-align: center; transition: box-shadow .2s;
}
.stat-box:hover { box-shadow: var(--shadow); }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: .85rem; color: var(--text-sub); font-weight: 500; }

.about-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 900; color: var(--text); margin-bottom: 20px; line-height: 1.3;
}
.about-content p { color: var(--text-sub); line-height: 1.85; margin-bottom: 16px; font-size: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  background: var(--primary-lt); color: var(--primary-dk);
  border: 1px solid rgba(0,168,132,.2);
  font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 20px;
}

.about-visual {
  background: linear-gradient(135deg, #006E56, #00A884);
  border-radius: 20px; padding: 48px 40px; color: #fff; box-shadow: var(--shadow-md);
}
.about-visual h3 {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.about-visual h3 span { color: #FFF176; }
.about-check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 1rem; color: rgba(255,255,255,.9);
}
.check-icon {
  width: 22px; height: 22px; min-width: 22px;
  background: rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; margin-top: 2px;
}

/* ============================================================
   CONTACT — 綠色漸層區塊
   ============================================================ */
#contact { background: linear-gradient(135deg, #006E56 0%, #00A884 100%); }
#contact .section-header h2 { color: #fff; }
#contact .section-header p { color: rgba(255,255,255,.8); }
#contact .section-header .eyebrow { color: #FFF176; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.contact-card:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.contact-card-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.contact-card p, .contact-card a {
  color: rgba(255,255,255,.8); font-size: 1rem; text-decoration: none; line-height: 1.7;
}
.contact-card a:hover { color: #FFF176; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.form-group input, .form-group select {
  padding: 13px 14px; border-radius: 8px; min-height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 1rem; font-family: inherit;
  outline: none; transition: border-color .2s, background .2s;
}
.form-group input::placeholder { color: rgba(255,255,255,.4); }
.form-group select option { background: #006E56; color: #fff; }
.form-group input:focus, .form-group select:focus {
  border-color: #FFF176; background: rgba(255,255,255,.18);
}
.check-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.check-label { display: flex; align-items: center; gap: 7px; font-size: .95rem; color: rgba(255,255,255,.85); cursor: pointer; }
.check-label input[type=checkbox] { accent-color: #FFF176; width: 16px; height: 16px; }
.form-submit {
  padding: 14px; border: none; border-radius: 8px; min-height: 48px;
  background: #fff; color: var(--primary-dk);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s, transform .15s; margin-top: 4px;
}
.form-submit:hover { background: #E0F4EE; transform: translateY(-1px); }
.form-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #0D1E1A; padding: 48px 5vw; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--primary); }
footer p { color: rgba(255,255,255,.4); font-size: .88rem; margin-top: 8px; }
.footer-divider { width: 48px; height: 2px; background: var(--primary); margin: 16px auto; border-radius: 2px; }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.float-btns {
  position: fixed; bottom: 28px; right: 20px;
  display: flex; flex-direction: column; gap: 12px; z-index: 997;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s;
}
.float-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.float-btn-call { background: var(--primary); }
.float-btn-line { background: #00B900; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 200px; height: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  /* 漢堡選單 */
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open li a {
    display: block; padding: 16px 5vw;
    color: var(--text); border-bottom: 1px solid var(--border); font-size: 1rem;
  }
  .nav-links.open li:last-child a {
    background: var(--primary); color: #fff; border-bottom: none;
    margin: 12px 5vw; border-radius: 8px; text-align: center;
  }
  .hamburger { display: flex; }

  section { padding: 64px 5vw; }
  .features-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .pricing-cards { grid-template-columns: 1fr; }
  .steps-wrapper::before { left: 20px; }
  .step-item { grid-template-columns: 46px 1fr; gap: 16px; }
  .step-num-circle { width: 42px; height: 42px; font-size: 1.1rem; }
  .float-btns { bottom: 20px; right: 14px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .phone-mockup { width: 180px; height: 340px; }
  .hero-trust { gap: 10px; }
}
