/* ============================================================
   Peacemaker Law Firm — 仲和國際法律事務所
   Classic / trustworthy: navy + gold, serif headings.
   ============================================================ */

:root {
  --navy:        #0f2340;
  --navy-700:    #16304f;
  --navy-600:    #1d3c63;
  --gold:        #b8924a;
  --gold-soft:   #c9a86a;
  --gold-light:  #e7d8b8;
  --ink:         #1c2530;
  --muted:       #5d6878;
  --line:        #e4e7ec;
  --bg:          #ffffff;
  --bg-alt:      #f6f4ef;
  --bg-navy:     #0f2340;
  --radius:      14px;
  --shadow-sm:   0 1px 3px rgba(15, 35, 64, .08);
  --shadow-md:   0 12px 32px rgba(15, 35, 64, .12);
  --serif:       "Noto Serif TC", "Cormorant Garamond", Georgia, serif;
  --serif-en:    "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --sans:        "Noto Sans TC", -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --maxw:        1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img, iframe { max-width: 100%; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  letter-spacing: .02em; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 20px rgba(184,146,74,.32); }
.btn-gold:hover { background: var(--gold-soft); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { height: 50px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 40px; } }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--navy); color: var(--gold-light);
  font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .04em;
  border-radius: 9px; border: 1px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-zh { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: .02em; }
.brand-en { font-family: var(--serif-en); font-size: 12.5px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: 15.5px; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px; background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--muted); transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-opt { font-weight: 700; }
.lang-opt.is-active { color: var(--navy); }
.lang-sep { color: var(--line); }

.btn-call {
  background: var(--navy); color: #fff; padding: 10px 18px; font-size: 14px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
  transition: background .2s, transform .18s;
}
.btn-call:hover { background: var(--navy-600); color: #fff; transform: translateY(-2px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    /* spotlight scrim behind the headline (left), falling off to reveal both attorneys */
    radial-gradient(125% 135% at 24% 48%, rgba(10,20,38,.92) 0%, rgba(12,25,46,.72) 34%, rgba(13,28,52,.34) 62%, rgba(13,28,52,.20) 100%),
    /* bottom scrim so the stat badges stay legible */
    linear-gradient(0deg, rgba(10,20,38,.78) 0%, rgba(10,20,38,0) 44%),
    /* soft top tint under the sticky header */
    linear-gradient(180deg, rgba(10,20,38,.42) 0%, rgba(10,20,38,0) 18%),
    url("images/lawyers.jpg");
  background-size: cover;
  background-position: center, center, center, center top;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
}
.hero-inner { padding: 96px 24px 104px; max-width: 880px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 20px; font-weight: 700;
  padding-bottom: 8px; border-bottom: 1px solid rgba(201,168,106,.4);
}
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.28; margin: 0 0 22px; letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(8, 16, 30, .55);
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18.5px); color: #e2e8f2; max-width: 660px; margin: 0 0 34px;
  text-shadow: 0 1px 12px rgba(8, 16, 30, .5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 40px; list-style: none; padding: 32px 0 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-family: var(--serif); font-size: 28px; color: var(--gold-light); line-height: 1.2; }
.hero-badges span { font-size: 14px; color: #b9c4d4; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin: 0 0 12px;
}
.section-title {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; margin: 0 0 14px;
}
.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-copy p { color: #38424f; margin: 0 0 18px; }
.about-facts { display: grid; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.about-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { margin: 0; color: var(--muted); font-size: 15px; }
.about-facts dd { margin: 0; color: var(--navy); font-weight: 700; }

.lincoln-quote {
  margin: 0 0 24px; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold);
}
.lincoln-quote p {
  font-family: var(--serif); font-style: italic; color: var(--navy);
  font-size: 17.5px; line-height: 1.85; margin: 0 0 10px;
}
.lincoln-quote cite {
  font-style: normal; color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .04em;
}

.about-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-md); border: 1px solid var(--navy-700);
}
.about-card-label {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
  font-weight: 700; margin: 0 0 22px;
}
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.value-list li { display: flex; gap: 16px; }
.value-num { font-family: var(--serif-en); font-size: 22px; color: var(--gold); font-weight: 700; flex: none; line-height: 1.3; }
.value-list h3 { margin: 0 0 4px; font-size: 17px; font-family: var(--serif); color: #fff; }
.value-list p { margin: 0; font-size: 14.5px; color: #c2cdde; line-height: 1.65; }

/* ---------- Practice ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.practice-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.practice-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-alt); font-size: 24px; margin-bottom: 18px;
}
.practice-card h3 { font-family: var(--serif); color: var(--navy); font-size: 19px; margin: 0 0 10px; }
.practice-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.team-cert { color: var(--muted); font-size: 13px; margin: 0 0 14px; letter-spacing: .02em; }
.team-photo {
  width: 136px; height: 136px; border-radius: 50%; object-fit: cover; object-position: center top;
  display: block; margin: 0 auto 20px; border: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(15,35,64,.20);
}
.team-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 30px; text-align: center; transition: transform .22s, box-shadow .22s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-lead { border-color: var(--gold-light); background: linear-gradient(180deg, #fffdf8, #fff); }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 34px; color: var(--gold-light);
  background: var(--navy); border: 2px solid var(--gold);
}
.team-card h3 { font-family: var(--serif); color: var(--navy); font-size: 21px; margin: 0 0 6px; }
.team-role { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin: 0 0 14px; }
.team-bio { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.75; }

/* ---------- Clients ---------- */
.client-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.client-list li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 18px; text-align: center; font-weight: 500; color: var(--navy);
  font-size: 15px; display: flex; align-items: center; justify-content: center; min-height: 86px;
  transition: border-color .2s, box-shadow .2s;
}
.client-list li:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

.client-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 720px; margin: 0 auto; }
.client-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.client-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--gold); background: rgba(184, 146, 74, .1); border: 1px solid var(--gold-light);
  padding: 4px 13px; border-radius: 999px; margin-bottom: 16px;
}
.client-card h3 { font-family: var(--serif); color: var(--navy); font-size: 24px; margin: 0 0 6px; }
.client-code { color: var(--muted); font-size: 14px; margin: 0; letter-spacing: .04em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--bg-alt); font-size: 18px;
}
.contact-k { display: block; font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-bottom: 2px; }
.contact-v { display: block; color: var(--navy); font-weight: 700; font-size: 16px; }
a.contact-v:hover { color: var(--gold); }

.transit { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 28px; }
.transit h3 { font-family: var(--serif); color: var(--navy); font-size: 18px; margin: 0 0 14px; }
.transit p { margin: 0 0 12px; font-size: 14.5px; color: #3c4654; line-height: 1.7; }
.transit p:last-child { margin-bottom: 0; }
.transit strong {
  display: inline-block; min-width: 46px; color: var(--gold); margin-right: 10px;
  font-weight: 700;
}

/* ---------- Form ---------- */
.contact-form-wrap {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; color: var(--navy); font-weight: 500; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fcfcfb;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,74,.14); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }

.map-wrap { margin-top: 52px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd6e3; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 24px 44px; }
.footer-brand .brand-zh { font-family: var(--serif); font-size: 20px; color: #fff; display: block; }
.footer-brand .brand-en { font-family: var(--serif-en); font-size: 13px; color: var(--gold-soft); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 2px; }
.footer-addr { color: #9fadc1; font-size: 14px; margin: 16px 0 0; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; font-family: var(--serif); margin: 0 0 16px; font-weight: 600; }
.footer-col a { display: block; color: #b3bfd0; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: center; }
.footer-bottom span { font-size: 13px; color: #8593a8; }

/* ---------- Language visibility ---------- */
html[data-lang="en"] .brand-zh { display: none; }
html[data-lang="en"] .footer-brand .brand-zh { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .client-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 15px 24px; border-bottom: 1px solid var(--bg-alt); font-size: 16px; }
  .main-nav a::after { display: none; }
  .nav-burger { display: flex; }
  .btn-call span { display: none; }
  .btn-call { padding: 10px 12px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 72px 24px 76px; }
  .practice-grid, .client-list, .client-feature { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badges { gap: 26px; }
  .brand-en { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
