/* ============================================================
   愉亮國際官網 - 主 CSS (main.css)
   品牌色：Navy #0f2d4a | Gold #c9a84c | Sky #0ea5e9
============================================================ */

/* ── CSS 變量（由主題文件覆蓋）──────────────────────────── */
:root {
  --navy:       #0f2d4a;
  --blue:       #1a3a5c;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --sky:        #0ea5e9;
  --gray:       #6b7280;
  --light:      #f8f9fa;
  --white:      #ffffff;
  --text:       #1e293b;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --radius:     12px;
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --transition: .2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans HK', 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 容器 ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 通用 Section ────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light); }
.section-navy  { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  background: rgba(201,168,76,.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 99px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.section-title-white { color: var(--white); }
.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 導航欄 ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(15,45,74,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--gold-light); }
.nav-lang {
  display: flex;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 20px;
}
.nav-lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.nav-lang-btn:hover,
.nav-lang-btn.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--navy);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nav-mobile.open { display: block; }
.nav-mobile-link {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile-link:hover { color: var(--gold-light); }
.nav-mobile-lang {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}
.nav-mobile-lang a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.nav-mobile-lang a.active {
  color: var(--gold);
  font-weight: 600;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,.06) 0%, transparent 40%);
}
.hero-bg-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.15);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 99px;
  padding: 6px 20px;
  font-size: 14px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 32px;
}
.hero-title-gold {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ── 按鈕 ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  margin-top: 20px;
  transition: all var(--transition);
}
.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* ── 統計 ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 卡片 ─────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-center { text-align: center; }
.card-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}
.card-number {
  width: 48px; height: 48px;
  background: rgba(201,168,76,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 流程 ─────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.process-step { text-align: center; padding: 24px 16px; }
.process-num {
  width: 56px; height: 56px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.process-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.process-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ── 案例 ─────────────────────────────────────────────────── */
.case-card { padding: 0 0 20px; overflow: hidden; }
.case-img { width: 100%; height: 160px; object-fit: cover; }
.case-card .case-tag,
.case-card .card-title,
.case-card .card-desc { padding-left: 20px; padding-right: 20px; }
.case-tag {
  display: inline-block;
  background: rgba(201,168,76,.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin: 12px 0 8px 20px;
}
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px;
  margin-top: 12px;
}
.case-metric {
  background: rgba(201,168,76,.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── 聯繫 ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text);
}
.contact-icon { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.contact-item a:hover { color: var(--gold); }

/* ── 表單 ─────────────────────────────────────────────────── */
.contact-form { background: var(--light); padding: 32px; border-radius: var(--radius); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--text);
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ── 頁腳 ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo-text { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: 13px; line-height: 1.6; max-width: 240px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social-link:hover { background: var(--gold); color: var(--navy); }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { font-size: 14px; transition: color var(--transition); }
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-contact ul li a:hover { color: var(--gold-light); }
.footer-lang-links { display: flex; flex-direction: column; gap: 10px; }
.footer-lang-links a { font-size: 14px; transition: color var(--transition); }
.footer-lang-links a.active { color: var(--gold); font-weight: 600; }
.footer-lang-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* ── WhatsApp 懸浮按鈕 ───────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

/* ── 響應式 ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 0; }
  .hero-content { padding: 90px 16px 60px; }
  .hero-stats { gap: 24px; }
  .cards-grid-3,
  .cards-grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
