/* ══════════════════════════════════════════════════════════
   Third but True — Shared Styles
   Used by: blog/, cases/ sub-pages
   index.html keeps its own inline styles (unchanged)
══════════════════════════════════════════════════════════ */

:root {
  --bg:      #050408;
  --surface: #0A070C;
  --card:    rgba(14,10,18,.94);
  --gold:    #A68B58;
  --gold-d:  #6A5234;
  --rose:    #7A4A5C;
  --cream:   #C8B8A4;
  --text:    #948878;
  --muted:   rgba(148,136,120,.42);
  --border:  rgba(166,139,88,.11);
  --font-display: 'Cinzel', 'Noto Serif TC', serif;
  --font-serif:   'Noto Serif TC', serif;
  --font-serif-en:'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-ui:      'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --shell-pad:    clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui); font-weight: 300;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 55% at 10% 12%, rgba(166,139,88,.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 85%, rgba(122,74,92,.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 52% 48%, rgba(20,12,30,.7) 0%, transparent 65%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }

/* ── Shell ── */
.page-shell {
  width: 100%; max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* ══ NAV ══════════════════════════════════════════════════ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(5,4,8,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px var(--shell-pad);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 16px;
}
@media (max-width: 699px) {
  .nav-inner {
    display: flex; flex-wrap: nowrap;
    justify-content: space-between; align-items: center;
    gap: 12px;
  }
  .nav-links { display: none !important; }
  .nav-right { margin-left: auto; }
}
.nav-logo {
  display: flex; flex-direction: column; gap: 4px;
  justify-self: start; align-items: flex-start;
  min-width: 0; flex-shrink: 1;
}
.nav-logo a { display: flex; flex-direction: column; gap: 4px; }
.nav-logo-main {
  font-family: var(--font-display); font-size: clamp(16px,2vw,20px);
  font-weight: 400; color: var(--cream); letter-spacing: .14em; line-height: 1.2;
}
.nav-logo-main em {
  font-family: var(--font-serif-en); font-style: italic; color: var(--gold);
}
.nav-logo-sub {
  font-family: var(--font-ui); font-size: 9px; font-weight: 400;
  letter-spacing: .38em; color: var(--muted); text-transform: uppercase;
}
.nav-links {
  display: none; gap: clamp(14px, 2vw, 24px);
  justify-self: center;
}
@media(min-width:700px){ .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(200,190,180,.55); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.nav-icon { font-size: 16px; color: rgba(200,190,180,.45); transition: color .2s; }
.nav-icon:hover { color: var(--gold); }
.nav-cta {
  font-family: var(--font-ui); font-size: 11px; font-weight: 400;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(166,139,88,.35);
  color: var(--gold); background: rgba(8,6,12,.4);
  letter-spacing: .1em; transition: background .2s, color .2s, border-color .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── Hamburger ── */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  color: rgba(200,190,180,.55); font-size: 20px; padding: 4px 2px;
  line-height: 1; transition: color .2s; flex-shrink: 0;
}
.nav-burger:hover { color: var(--gold); }
@media(max-width:699px) { .nav-burger { display: flex; align-items: center; } }

/* ── Mobile nav panel ── */
.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(5,4,8,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: rgba(200,190,180,.58);
  padding: 16px var(--shell-pad);
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--gold); background: rgba(166,139,88,.05); }
.nav-mobile .nm-cta {
  color: var(--gold); font-size: 12px;
  padding: 18px var(--shell-pad);
  display: flex; align-items: center; gap: 10px;
}

/* ══ SHARED TYPOGRAPHY ════════════════════════════════════ */
.sec-eyebrow {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.sec-h2 {
  font-family: var(--font-serif); font-size: clamp(26px,3.2vw,38px);
  font-weight: 400; color: var(--cream); margin-bottom: 12px;
  letter-spacing: .06em; line-height: 1.25;
}
.sec-sub {
  font-family: var(--font-ui); font-size: clamp(15px,2.5vw,17px); font-weight: 400;
  color: var(--muted); line-height: 1.85; letter-spacing: .03em;
}
.sec-divider {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 22px;
}
.sec-head { margin-bottom: 48px; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: var(--font-ui); font-size: 11px; font-weight: 400;
  color: var(--muted); letter-spacing: .06em;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(166,139,88,.7); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; }

/* ══ BUTTONS ══════════════════════════════════════════════ */
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#25D366,#128C7E); color: #fff;
  font-family: var(--font-ui); font-size: 14px; font-weight: 400;
  letter-spacing: .06em; border: none; border-radius: 999px;
  padding: 14px 28px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,211,102,.25);
  transition: filter .2s, box-shadow .2s;
}
.btn-wa:hover { filter: brightness(1.06); box-shadow: 0 6px 24px rgba(37,211,102,.35); }
.btn-ig,
.btn-tg {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#2AABEE,#229ED9); color: #fff;
  font-family: var(--font-ui); font-size: 14px; font-weight: 400;
  letter-spacing: .06em; border: none; border-radius: 999px;
  padding: 14px 28px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 18px rgba(34,158,217,.3);
  transition: filter .2s, box-shadow .2s;
}
.btn-ig:hover, .btn-tg:hover { filter: brightness(1.06); box-shadow: 0 6px 26px rgba(34,158,217,.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--gold);
  font-family: var(--font-ui); font-size: 13px; font-weight: 400;
  letter-spacing: .1em; border: 1px solid rgba(166,139,88,.4);
  border-radius: 999px; padding: 12px 26px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); }

/* ══ FLOATING CTA ════════════════════════════════════════ */
.float-cta {
  position: fixed; bottom: 28px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s;
}
.float-btn:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,.5); }
.float-wa { background: linear-gradient(135deg,#25D366,#128C7E); color: #fff; }
.float-tg,
.float-ig { background: linear-gradient(135deg,#2AABEE,#229ED9); color: #fff; }

/* ══ FOOTER ══════════════════════════════════════════════ */
footer {
  background: rgba(8,6,4,0); border-top: 1px solid var(--border);
  padding: 44px 32px 28px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 0 var(--shell-pad);
}
.footer-logo {
  font-family: var(--font-display); font-size: 17px; font-weight: 400;
  color: var(--cream); letter-spacing: .18em;
}
.footer-logo em { font-style: italic; color: var(--gold); letter-spacing: .08em; }
.footer-nav {
  display: flex; gap: clamp(14px,2.5vw,26px); flex-wrap: wrap; justify-content: center;
}
.footer-nav a {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-icons { display: flex; gap: 18px; }
.footer-icons a { font-size: 17px; color: var(--muted); transition: color .2s; }
.footer-icons a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--font-ui); font-size: 10px; font-weight: 300;
  color: rgba(184,168,144,.22); letter-spacing: .12em;
}

/* ══ CARD BASE (shared by blog + cases) ══════════════════ */
.content-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
  border-color: rgba(166,139,88,.3);
}
.card-thumb {
  display: block;
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  background-color: rgba(16,10,22,.8);
  position: relative; overflow: hidden;
}
.card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(5,3,8,.75));
}
.card-badge {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-family: var(--font-ui); font-size: 9px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(200,175,130,.92);
  background: rgba(5,3,8,.68); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(166,139,88,.28);
}
.card-body { padding: 20px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-family: var(--font-ui); font-size: 10px; color: var(--muted);
  letter-spacing: .06em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 0;
}
.card-meta-sep { margin: 0 8px; opacity: .35; }
.card-title {
  font-family: var(--font-serif); font-size: clamp(17px,2.2vw,20px);
  font-weight: 400; color: var(--cream); margin-bottom: 10px;
  line-height: 1.45; letter-spacing: .04em;
}
.card-excerpt {
  font-family: var(--font-ui); font-size: 14px; font-weight: 300;
  color: var(--text); line-height: 1.8; letter-spacing: .02em;
  flex: 1; margin-bottom: 18px;
}
.card-link {
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.card-link:hover { gap: 10px; }

/* ══ REVEAL ANIMATION ════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══ SECTION CTA STRIP ════════════════════════════════════ */
.cta-strip {
  background: linear-gradient(160deg, rgba(20,12,8,.98), rgba(10,7,4,.99));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: clamp(40px,6vw,64px) var(--shell-pad); text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-serif); font-size: clamp(20px,3.2vw,28px);
  color: var(--cream); font-weight: 400; margin-bottom: 10px; letter-spacing: .06em;
}
.cta-strip p {
  font-family: var(--font-ui); font-size: clamp(15px,2.8vw,17px);
  color: var(--muted); margin-bottom: 28px; line-height: 1.85; letter-spacing: .03em;
  max-width: 36em; margin-left: auto; margin-right: auto;
}
.cta-strip-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══ CHINESE TYPOGRAPHY — justified paragraphs ══════════ */
.art-body p,
.case-body p,
.art-body li,
.case-body li,
.pg-sub,
.card-excerpt,
.cta-strip p {
  text-align: justify;
  overflow-wrap: break-word;
}

/* ══ MOBILE OVERRIDES ════════════════════════════════════ */
@media (max-width: 699px) {
  :root { --text: #B4A598; --muted: rgba(172,158,144,.58); --cream: #D8C8B8; }
  body { font-weight: 400; font-size: 18px; }
  .nav-logo { max-width: calc(100vw - 168px); }
  .nav-cta { font-size: 12px; padding: 9px 14px; }
  .sec-eyebrow { font-size: 11px; }
  .sec-h2 { font-size: clamp(24px,6vw,32px); }
  .sec-sub { font-size: 17px; line-height: 1.9; }
  .btn-wa, .btn-ig, .btn-tg { font-size: 15px; padding: 14px 24px; }
  .card-title { font-size: 18px; }
  .card-excerpt { font-size: 15px; line-height: 1.85; }

  /* ── Article / Case body text ── */
  .art-body p, .case-body p { font-size: 17px !important; line-height: 1.95 !important; text-align: justify !important; }
  .art-body h2, .case-body h2 { font-size: 22px !important; }
  .art-body li, .case-body li { font-size: 17px !important; line-height: 1.95 !important; text-align: justify !important; }
  .pull-quote p { font-size: 19px !important; line-height: 1.7 !important; text-align: justify !important; }
  .ig-bubble, .ig-bubble-reply { font-size: 16px !important; line-height: 1.8 !important; }
  .tl-content { font-size: 16px !important; line-height: 1.85 !important; text-align: justify !important; }
  .info-box p { font-size: 16px !important; line-height: 1.85 !important; text-align: justify !important; }
  .pg-sub { font-size: 17px !important; line-height: 1.9 !important; text-align: justify !important; }
}
