/* ============================================
   HEDER 官網 1:1 復刻樣式
   goheder.com 視覺與佈局還原
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-text: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-dark: #2d2d2d;
  --color-dark-bg: #1e1e1e;
  --color-accent: #6b4e9a;
  --color-accent-hover: #5a4190;
  --color-border: #e0e0e0;
  --color-white: #ffffff;
  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 72px;
  --container-max: 1200px;
  --section-padding-y: 80px;
  --section-padding-y-mobile: 48px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.skip-link {
  position: absolute; left: -9999px; z-index: 999;
}
.skip-link:focus {
  left: 1rem; top: 1rem; padding: 0.5rem 1rem;
  background: var(--color-dark); color: var(--color-white); text-decoration: none;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height); background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.header-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.logo-img { display: block; height: 42px; width: auto; object-fit: contain; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.95rem; font-weight: 500; color: var(--color-text);
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

.header-social { display: flex; align-items: center; gap: 16px; }
.social-link { display: inline-block; transition: opacity 0.2s ease; }
.social-link:hover { opacity: 0.8; }
.social-link img { display: block; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 0; border: none;
  background: transparent; cursor: pointer;
}
.menu-toggle-bar {
  display: block; width: 24px; height: 2px; background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
  background: var(--color-white); border-bottom: 1px solid var(--color-border);
  padding: 24px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-mobile.is-open { display: block; }
.nav-mobile-list { display: flex; flex-direction: column; gap: 16px; }
.nav-mobile .nav-link { display: block; padding: 8px 0; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-height) + 48px) 24px 48px;
  background: #1e1e1e url('images/hero-bg-goheder.jpg') center center / cover no-repeat;
  color: var(--color-white); text-align: center;
}
.hero-inner { max-width: 720px; }
.hero-title {
  margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.25; letter-spacing: 0.02em;
}
.hero-subtitle {
  margin: 0 0 32px; font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500; opacity: 0.95;
}
.hero-cta {
  display: inline-block; padding: 14px 32px; font-size: 1rem; font-weight: 600;
  color: var(--color-dark); background: var(--color-white);
  border-radius: 4px; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-cta:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ---------- Vibehen Banner ---------- */
.vibehen-banner {
  padding: 56px 24px; background: var(--color-bg-alt); text-align: center;
}
.vibehen-inner { max-width: var(--container-max); margin: 0 auto; }
.vibehen-lead {
  margin: 0 0 12px; font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600; color: var(--color-text); line-height: 1.5;
}
.vibehen-heder {
  margin: 0 0 24px; font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500; color: var(--color-text-light);
}
.vibehen-title {
  margin: 0 0 12px; font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700; color: var(--color-accent); letter-spacing: 0.05em;
}
.vibehen-tagline {
  margin: 0 0 24px; font-size: 1.05rem; color: var(--color-text-light); font-weight: 500;
}
.vibehen-cta {
  display: inline-block; padding: 10px 24px; font-size: 0.95rem; font-weight: 600;
  color: var(--color-white); background: var(--color-accent);
  border-radius: 4px; transition: background 0.2s ease, transform 0.2s ease;
}
.vibehen-cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-padding-y) 0; }
.section-title, .section-heading {
  margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.35; text-align: center;
}
.section-subheading {
  margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--color-text-light);
}
.section-desc {
  margin: 0 0 12px; color: var(--color-text-light); text-align: center;
  max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ---------- Stats ---------- */
.section-stats { background: var(--color-bg); }
.stats-heading { margin-bottom: 24px; }
.section-stats .section-desc { margin-bottom: 32px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.stat-item {
  text-align: center; padding: 32px 24px; background: var(--color-bg-alt);
  border-radius: 8px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.stat-number {
  display: block; font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--color-accent); margin-bottom: 8px;
}
.stat-label { font-size: 0.95rem; color: var(--color-text-light); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px; background: var(--color-dark-bg);
  color: var(--color-white); text-align: center;
}
.footer-heading { margin: 0 0 24px; font-size: 1.5rem; font-weight: 700; }
.footer-logo { margin-bottom: 24px; }
.footer-logo-img { width: 128px; height: auto; margin: 0 auto; display: block; }
.footer-desc {
  max-width: 560px; margin: 0 auto 20px; font-size: 0.95rem; line-height: 1.7; opacity: 0.9;
}
.footer-company { margin: 0 0 8px; font-size: 0.8rem; opacity: 0.75; }
.footer-cta { margin: 24px 0 20px; font-size: 1.1rem; font-weight: 600; }
.footer-copy { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-padding-y: 56px; }
  .stats-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  :root { --section-padding-y: var(--section-padding-y-mobile); --header-height: 64px; }
  .nav { display: none; }
  .header-social { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--header-height) + 32px) 16px 32px; min-height: 85vh; }
  .footer { padding: 48px 0 24px; }
}