/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #1a3a2a;
  --green-mid:    #2d6a4f;
  --green-accent: #3a7d5c;
  --green-light:  #6cb88a;
  --green-pale:   #eaf4ee;
  --cream:        #f7f5f0;
  --white:        #ffffff;
  --text-dark:    #1c1c1c;
  --text-mid:     #4a4a4a;
  --text-light:   #767676;
  --border:       #e0ddd8;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.13);
  --radius:       10px;
  --radius-lg:    16px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { line-height: 1.3; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── SECTION HEADER ── */
.sec-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 10px;
}
.sec-title { color: var(--green-dark); margin-bottom: 14px; }
.sec-desc { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }
.sec-line {
  width: 40px; height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
  margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  font-family: inherit;
  cursor: pointer; border: 2px solid transparent;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--green-accent); color: var(--white); border-color: var(--green-accent); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--green-accent); border-color: var(--green-accent); }
.btn-outline-dark:hover { background: var(--green-pale); }
.btn-line { background: #06C755; color: var(--white); border-color: #06C755; }
.btn-line:hover { background: #05a848; border-color: #05a848; }

/* ── HEADER ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(26,58,42,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 64px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 1rem;
  letter-spacing: 0.03em; flex-shrink: 0;
}
.site-logo img { height: 36px; width: auto; border-radius: 4px; }
.logo-text span { color: var(--green-light); }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: rgba(255,255,255,0.80);
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }

.header-cta {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.header-cta .btn { padding: 8px 18px; font-size: 0.85rem; }

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 1.4rem;
  cursor: pointer; padding: 6px;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  color: var(--white); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a i { width: 14px; color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ── BACK TO TOP ── */
#back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 190;
  width: 42px; height: 42px;
  background: var(--green-accent);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--green-dark);
  padding: 120px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.70); font-size: 1.1rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.7rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-nav { display: none; flex-direction: column; gap: 0; }
  .site-nav.open {
    display: flex;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--green-dark);
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav a { padding: 12px 24px; border-radius: 0; font-size: 1rem; }
  .header-cta .btn-line { display: none; }
  .menu-toggle { display: block; }
}
