/* =========================================================
   Tangtangguoguo Limited 糖糖果果傳媒有限公司
   Shared stylesheet
   Palette: deep navy + warm gold + warm off-white
========================================================= */

:root {
  --navy: #0f1e3d;
  --navy-2: #16294f;
  --navy-soft: #20335c;
  --gold: #c2a15a;
  --gold-soft: #d8bd83;
  --cream: #faf7f1;
  --cream-2: #f3eede;
  --ink: #1b2440;
  --muted: #5c6580;
  --line: #e4ddd0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 30, 61, 0.10);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --serif-cjk: "Noto Serif TC", "Songti TC", serif;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

.serif { font-family: var(--serif); }

/* language visibility */
html[data-lang="zh"] .en { display: none; }
html[data-lang="en"] .zh { display: none; }
/* inline variants keep inline display */
html[data-lang="zh"] span.en,
html[data-lang="en"] span.zh { display: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark {
  width: 50px; height: 50px; border-radius: 50%;
  object-fit: cover; background: var(--cream); display: block;
  box-shadow: inset 0 0 0 1px rgba(194,161,90,.45), 0 2px 10px rgba(15,30,61,.12);
}
.site-footer .brand .mark {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(216,189,131,.5), 0 4px 14px rgba(0,0,0,.25);
}
.brand .brand-text b {
  display: block; font-family: var(--serif); font-size: 1.18rem;
  letter-spacing: .5px; color: var(--navy); font-weight: 700; line-height: 1.2;
}
.brand .brand-text small {
  display: block; font-size: .68rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: .92rem; letter-spacing: .5px; color: var(--ink);
  position: relative; padding: 4px 0; font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  border: 1px solid var(--navy); background: transparent;
  color: var(--navy); border-radius: 999px;
  font-size: .78rem; letter-spacing: 1px; font-weight: 600;
  padding: 7px 16px; cursor: pointer; font-family: var(--sans);
  transition: all .25s ease;
}
.lang-toggle:hover { background: var(--navy); color: var(--cream); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: .6px;
  cursor: pointer; transition: all .28s ease; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(194,161,90,.35); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(120deg, rgba(10,20,42,.92) 0%, rgba(15,30,61,.78) 55%, rgba(22,41,79,.6) 100%),
    radial-gradient(circle at 80% 20%, rgba(194,161,90,.25), transparent 45%),
    var(--navy);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 22px, transparent 22px 44px);
  pointer-events: none;
}
.hero-inner { padding: 110px 0 120px; position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-soft);
  border: 1px solid rgba(194,161,90,.45); border-radius: 999px;
  padding: 7px 18px; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem); line-height: 1.1;
  margin-bottom: 22px; letter-spacing: .5px;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero p.lead {
  font-size: 1.12rem; color: rgba(255,255,255,.82);
  max-width: 600px; margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 70px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.hero-stats .stat b { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-soft); display:block; }
.hero-stats .stat span { font-size: .82rem; letter-spacing: 1px; color: rgba(255,255,255,.7); }

/* ---------------- Sections ---------------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head .kicker {
  font-size: .76rem; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px; display: block;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--navy); line-height: 1.15; margin-bottom: 18px; font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 1.04rem; }
.bg-cream { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .section-head h2 { color: #fff; }
.bg-navy .section-head p { color: rgba(255,255,255,.75); }

/* ---------------- Services / cards ---------------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 40px;
  box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(15,30,61,.16); }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-2); font-size: 1.7rem; margin-bottom: 24px;
}
.service-card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.service-card .tag { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; display: block; }
.service-card p { color: var(--muted); margin-bottom: 18px; }
.service-card ul { list-style: none; }
.service-card ul li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .94rem; color: var(--ink); }
.service-card ul li::before { content: "♟"; position: absolute; left: 0; color: var(--gold); }
.service-card.tea ul li::before { content: "✦"; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px 30px;
}
.bg-navy .feature h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-soft); margin-bottom: 10px; }
.bg-navy .feature p { color: rgba(255,255,255,.72); font-size: .95rem; }
.feature .num { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); display: block; margin-bottom: 14px; }

/* split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .text h2 { font-family: var(--serif); font-size: clamp(1.8rem,3.4vw,2.7rem); color: var(--navy); margin-bottom: 20px; line-height: 1.18; }
.split .text p { color: var(--muted); margin-bottom: 18px; }
.split .kicker { font-size: .76rem; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; display: block; }
.figure-card {
  background: var(--navy); border-radius: 20px; padding: 50px 44px; color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.figure-card::before {
  content: "♚"; position: absolute; right: -10px; bottom: -30px;
  font-size: 13rem; color: rgba(194,161,90,.12); line-height: 1;
}
.figure-card h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-soft); margin-bottom: 16px; position: relative; }
.figure-card p { color: rgba(255,255,255,.8); position: relative; }
.figure-card .quote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.5; position: relative; }

/* values list */
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.value-item { display: flex; gap: 18px; padding: 26px; background: var(--white); border:1px solid var(--line); border-radius: var(--radius); }
.value-item .vi-num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.value-item h4 { font-size: 1.12rem; color: var(--navy); margin-bottom: 6px; }
.value-item p { color: var(--muted); font-size: .92rem; }

/* timeline */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content:""; position:absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 36px 52px; }
.tl-item::before { content:""; position:absolute; left: 7px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.tl-item h4 { color: var(--navy); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: .95rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list .ic {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--navy);
  color: var(--gold-soft); display: grid; place-items: center; font-size: 1.2rem;
}
.info-list .meta small { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
.info-list .meta b { color: var(--navy); font-size: 1.04rem; display: block; }
.info-list .meta b a:hover { color: var(--gold); }
.info-list .meta span { color: var(--muted); font-size: .92rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.form-card p.sub { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; letter-spacing: .5px; color: var(--ink); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .95rem; color: var(--ink); background: var(--cream);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }

.map-embed { border:0; width:100%; height: 320px; border-radius: var(--radius); filter: saturate(.9); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 70px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand .brand-text b { color: #fff; }
.site-footer .brand .brand-text small { color: var(--gold-soft); }
.site-footer p.desc { margin-top: 20px; max-width: 360px; font-size: .92rem; color: rgba(255,255,255,.66); }
.footer-col h5 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; color: rgba(255,255,255,.72); margin-bottom: 11px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Page banner ---------------- */
.page-banner {
  background: linear-gradient(120deg, rgba(10,20,42,.94), rgba(22,41,79,.8)), var(--navy);
  color: #fff; padding: 80px 0; text-align: center;
}
.page-banner .eyebrow { margin-bottom: 18px; }
.page-banner h1 { font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.2rem); }
.page-banner p { color: rgba(255,255,255,.75); max-width: 560px; margin: 14px auto 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .services, .features, .split, .contact-grid, .values, .footer-top { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .nav-links {
    position: fixed; top: 79px; right: 0; height: calc(100vh - 79px); width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 36px 32px; gap: 26px; transform: translateX(110%); transition: transform .35s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.12); border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .menu-btn { display: block; }
  .hero-stats { gap: 30px; }
  section { padding: 70px 0; }
  .footer-bottom { justify-content: flex-start; }
}
