/* ════════════════════════════════════════════════════
   大明星創意行銷 · 共用樣式 style.css  v3
   品牌色票｜主色 #0269C0 #F2F1EE
   輔色｜#C9CDD0 #4594CF #B5C3E6 #0051A0 #F6F9F9
   品牌字體｜可畫長美黑-繁（展示字）/ COURIER PRIME（數字、英文點綴）
            / NOTO SANS TC（本文，可替代微軟正黑體）
   ════════════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --ink:       #0B1E33;   /* 深底（取代純黑，仍呼應主藍） */
  --blue:      #0269C0;   /* 主色 · 品牌藍 */
  --blue-dk:   #0051A0;   /* 輔色 · 深藍（hover / 強調） */
  --blue-lt:   #B5C3E6;   /* 輔色 · 淺藍（底色 / 卡片） */
  --blue-sky:  #4594CF;   /* 輔色 · 天藍（漸層 / 點綴） */
  --cream:     #F2F1EE;   /* 主色 · 米灰（淺底） */
  --offwhite:  #F6F9F9;   /* 輔色 · 近白（卡片底） */
  --gray:      #C9CDD0;   /* 輔色 · 灰（邊框 / 弱化文字） */
  --white:     #FFFFFF;
  --gray-bg:   #F6F9F9;
  --gray-ln:   #C9CDD0;
  --gray-tx:   #5C6770;
  --serif:     'Noto Serif TC', serif;          /* 展示字 fallback：建議換成「可畫長美黑-繁」 */
  --display:   'Courier Prime', 'Noto Sans TC', monospace; /* 數字 / 英文點綴 */
  --sans:      'Noto Sans TC', sans-serif;       /* 本文 */
  --nav-h:     64px;
  --radius:    10px;

  /* 向下相容別名（沿用 v2 變數名稱，數值對應新品牌色） */
  --amber:     #4594CF;   /* 原強調色 → 天藍 */
  --amber-dk:  #0051A0;   /* 原強調色 hover → 深藍 */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; overflow-x: hidden; }

/* ─── Layout ─── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* ─── Typography ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue-sky); margin-bottom: 18px;
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900; line-height: 1.2; color: var(--ink);
}
.section-lead {
  font-size: 17px; color: var(--gray-tx);
  line-height: 1.85; margin-top: 14px; max-width: 560px;
}
.amber-bar {
  width: 40px; height: 4px;
  background: var(--blue); border-radius: 2px;
  margin: 20px 0 36px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-size: 15.5px; font-weight: 700; letter-spacing: .04em;
  padding: 15px 30px; border-radius: 4px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .18s, box-shadow .2s;
  box-shadow: 0 6px 28px rgba(2,105,192,.32);
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(2,105,192,.38); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.75);
  font-size: 15px; font-weight: 500;
  padding: 15px 28px; border-radius: 4px;
  text-decoration: none; border: 1px solid rgba(255,255,255,.25);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: var(--white); background: rgba(255,255,255,.06); }

/* ════════════════════════════════
   ─── NAV ───
   ════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #0269c0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 28px; max-width: 1040px; margin: 0 auto;
}
.nav-logo {
  font-family: var(--serif); font-size: 17px; font-weight: 900;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo-img { height: 48px; max-width: 270px; object-fit: contain; display: block; }
.nav-logo-text { display: flex; align-items: center; gap: 10px; }
.nav-star {
  width: 28px; height: 28px; background: rgba(255,255,255,.18); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.85);
  text-decoration: none; letter-spacing: .04em; padding: 7px 13px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.15); }
.nav-cta {
  background: var(--white) !important; color: var(--blue) !important;
  font-weight: 700 !important; padding: 8px 18px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--cream) !important; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; background: none; border: none;
  cursor: pointer; padding: 4px; border-radius: 4px;
}
.nav-burger span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: #0269c0;
  z-index: 199; flex-direction: column; padding: 32px 28px;
  gap: 6px; overflow-y: auto;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-size: 18px; font-weight: 600; color: rgba(255,255,255,.9);
  text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: color .2s;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--white); }
.nav-drawer .drawer-cta {
  margin-top: 18px; background: var(--white); color: var(--blue) !important;
  text-align: center; padding: 16px !important; border-radius: 6px;
  border-bottom: none !important; font-weight: 700 !important;
}

/* ─── Page Banner ─── */
.page-banner {
  background: #0269c0;
  padding: 130px 0 80px;
  position: relative; overflow: hidden;
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.page-banner h1 .accent { color: #0B1E33; }
.page-banner p { font-size: 17px; color: rgba(255,255,255,.65); max-width: 540px; line-height: 1.85; }
.page-banner-breadcrumb {
  font-size: 12px; color: rgba(11,30,51,.55); letter-spacing: .08em;
  margin-bottom: 28px;
}
.page-banner-breadcrumb a { color: rgba(11,30,51,.55); text-decoration: none; }
.page-banner-breadcrumb a:hover { color: #0B1E33; }

/* ─── CTA Strip ─── */
.cta-strip {
  background: linear-gradient(180deg, var(--ink) 0%, #173E66 55%, var(--blue) 130%);
  padding: 88px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::after {
  content: '★'; position: absolute; right: 5%; bottom: -20px;
  font-size: 220px; color: rgba(255,255,255,.03);
  font-family: var(--serif); line-height: 1; pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 28px; }
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px); font-weight: 900;
  color: var(--white); line-height: 1.2; margin-bottom: 18px;
}
.cta-strip h2 em { font-style: normal; color: var(--blue-sky); }
.cta-strip p { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.85; margin-bottom: 36px; }
.cta-btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,.35); letter-spacing: .04em; }
.cta-note span { color: var(--blue-sky); }

/* ─── Footer ─── */
footer {
  background: #061322; padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px; margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand {
  font-family: var(--serif); font-size: 20px; font-weight: 900;
  color: var(--white); margin-bottom: 10px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.35); line-height: 1.7; margin-bottom: 20px; }
.footer-contact a {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.45);
  text-decoration: none; margin-bottom: 9px; transition: color .2s;
}
.footer-contact a:hover { color: var(--blue-sky); }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.2);
}
.footer-philosophy {
  font-family: var(--serif); font-size: 12.5px; font-style: italic;
  color: rgba(255,255,255,.25); max-width: 380px; text-align: right; line-height: 1.6;
}

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-philosophy { text-align: center; max-width: 100%; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .footer-inner { grid-template-columns: 1fr; }
}
