/* ============================================================
   Lifeplus Wellbeing Guide — styles
   Clean, premium, image-light. Natural green palette.
   ============================================================ */
:root {
  --green-900: #1e3a2b;
  --green-700: #2f6f4b;
  --green-600: #3a855a;
  --green-500: #4a9d6e;
  --green-100: #e7f2ec;
  --green-50:  #f3f8f5;
  --ink:       #1c2620;
  --ink-soft:  #4d5a52;
  --line:      #e2e8e4;
  --bg:        #ffffff;
  --bg-alt:    #f6faf7;
  --gold:      #c8a560;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(24, 49, 35, 0.08);
  --shadow-sm: 0 3px 12px rgba(24, 49, 35, 0.06);
  --maxw:      1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
          "Noto Sans TC", "Noto Sans KR", "Noto Sans Thai",
          "Hiragino Sans", "Microsoft JhengHei", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: 14px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-700); }
.btn-light:hover { background: var(--green-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--green-700); color: #fff; font-weight: 800; font-size: .95rem;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.12rem; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.main-nav { display: flex; gap: 22px; margin-left: 14px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switcher { display: inline-flex; align-items: center; gap: 6px; }
.lang-switcher .globe { font-size: 1rem; }
.lang-switcher select {
  font-family: inherit; font-size: .9rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px;
  background: #fff; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), #fff 75%);
  padding: 88px 0 72px;
}
.hero-inner { max-width: 760px; }
.eyebrow, .section-head p .eyebrow { display: inline-block; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); color: var(--green-900); }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); max-width: 540px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head-left { margin: 0 0 20px; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--green-900); }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; color: var(--green-900); }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.card-flat { box-shadow: none; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; background: var(--green-100); margin-bottom: 16px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li {
  display: flex; align-items: baseline; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--green-600); min-width: 88px; }
.stat-label { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Category cards ---------- */
.cat-card, .goal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cat-card:hover, .goal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-emoji { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.cat-card h3, .goal-card h3 { font-size: 1.1rem; color: var(--green-900); }
.cat-card p, .goal-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.goal-card { border-left: 3px solid var(--green-500); }
.goal-card-cta {
  background: var(--green-900); color: #fff; border-left-color: var(--gold);
  display: flex; flex-direction: column; gap: 8px;
}
.goal-card-cta h3 { color: #fff; }
.goal-card-cta p { color: #d6e6dc; margin-bottom: 8px; }
.goal-card-cta .btn { align-self: flex-start; }

/* ---------- Final CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
}
.cta-inner { text-align: center; max-width: 660px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cta-inner p { color: #d9e8df; font-size: 1.1rem; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #11231a; color: #b9cabf; padding: 44px 0; font-size: .9rem; }
.footer-inner { max-width: 820px; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.footer-disclaimer { line-height: 1.7; margin-bottom: 14px; }
.footer-copy { color: #87988d; margin: 0; }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 35, 26, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: #fff; border-radius: 18px;
  max-width: 460px; width: 100%; padding: 36px 32px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 1.4rem; color: var(--green-900); margin-bottom: 18px; }
.modal-steps { margin: 0 0 24px; padding-left: 20px; color: var(--ink-soft); }
.modal-steps li { margin-bottom: 12px; line-height: 1.6; }
.modal-steps strong { color: var(--green-700); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn { width: 100%; }
.modal-close {
  position: absolute; top: 14px; right: 16px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-cancel {
  display: block; margin: 16px auto 0; background: none; border: none;
  color: var(--ink-soft); font-size: .92rem; cursor: pointer; text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 56px 0; }
  .brand-sub { display: none; }
  .header-inner { height: 60px; gap: 10px; }
  .header-actions .btn { display: none; } /* official CTA stays available in hero/sections */
}
