/* ============================================================
   Sing Leong & Associates — site stylesheet
   Palette drawn from firm logo: gold #DAA162, ink #231F20,
   warm cream background, blush accent from firm stationery.
   ============================================================ */
:root {
  --ink: #231f20;
  --ink-soft: #4a4547;
  --gold: #daa162;
  --gold-deep: #b9813f;
  --cream: #fbf8f2;
  --cream-deep: #f4ede1;
  --blush: #e8a9a2;
  --line: #e3dccd;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
}
html[lang="zh-Hans"] {
  --serif: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans SC", "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.tint { background: var(--cream-deep); }
.kicker {
  display: inline-block; font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px;
  font-weight: 600;
}
.center { text-align: center; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 46em; }
.center .lede { margin: 0 auto; }

/* ---------- header ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 700;
  letter-spacing: .06em; color: var(--ink); white-space: nowrap;
}
.brand-sub {
  font-size: .68rem; letter-spacing: .3em; text-transform: lowercase;
  color: var(--ink-soft);
}
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  color: var(--ink); font-size: .95rem; font-weight: 600;
  letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px;
  font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--cream);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-deep); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(218,161,98,.14), transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 76px;
  text-align: center;
}
.hero img.lockup { width: min(420px, 72vw); margin-bottom: 34px; }
.hero .tagline {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 600; color: var(--ink); max-width: 24em; margin: 0 auto 14px;
}
.hero .tagline em { font-style: normal; color: var(--gold-deep); }
.hero .sub { color: var(--ink-soft); max-width: 42em; margin: 0 auto 34px; font-size: 1.08rem; }
.btn {
  display: inline-block; background: var(--gold); color: var(--white);
  padding: 13px 34px; border-radius: 999px; font-weight: 600;
  letter-spacing: .04em; font-size: .98rem;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--gold);
  margin-left: 12px;
}
.btn.ghost:hover { background: var(--gold); color: var(--white); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; margin-top: 44px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 10px 30px rgba(35,31,32,.08); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.card-rule { width: 34px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 18px; }

/* why-us row */
.why-item { text-align: center; padding: 10px 18px; }
.why-item .num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--gold);
  display: block; margin-bottom: 8px; font-weight: 700;
}
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--ink-soft); font-size: .96rem; }

/* people */
.person { text-align: center; }
.person .avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--cream-deep); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold-deep); font-weight: 700;
}
.person .role { color: var(--gold-deep); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.person .langs { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }

/* insights */
.post-meta { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }
.article-body { max-width: 46em; margin: 0 auto; }
.article-body p { margin-bottom: 1.3em; color: var(--ink-soft); }
.article-body h2 { margin: 1.6em 0 .6em; font-size: 1.5rem; }
.notice {
  background: #fdf3e4; border: 1px solid var(--gold); border-radius: 10px;
  padding: 14px 20px; font-size: .92rem; color: var(--ink-soft); margin-bottom: 34px;
}

/* legal pages */
.legal h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .9em; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal { max-width: 50em; }

/* contact */
.contact-block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 34px; }
.contact-block h3 { margin-bottom: 14px; }
.contact-block p { margin-bottom: 10px; color: var(--ink-soft); }
.contact-block strong { color: var(--ink); }

/* contact band on home — warm skyline, never black */
.band {
  background:
    linear-gradient(rgba(120, 82, 40, .78), rgba(120, 82, 40, .78)),
    var(--cream-deep) center / cover no-repeat;
  color: var(--cream); text-align: center;
  padding: 74px 0;
}
.band h2 { color: var(--white); margin-bottom: 12px; }
.band p { color: #f4e8d8; max-width: 40em; margin: 0 auto 28px; }
.band .btn { background: var(--white); color: var(--gold-deep); }
.band .btn:hover { background: var(--cream); color: var(--ink); }

/* ---------- footer — warm light, never black ---------- */
footer {
  background: var(--cream-deep); color: var(--ink-soft); padding: 54px 0 30px;
  font-size: .92rem; border-top: 4px solid var(--gold);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer h4 { color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: .04em; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--gold-deep); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
.foot-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); letter-spacing: .05em; margin-bottom: 6px; }
.foot-tag { font-size: .88rem; font-style: italic; color: var(--gold-deep); margin-bottom: 14px; }
.foot-legal {
  border-top: 1px solid var(--line); padding-top: 22px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem;
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-top: 3px solid var(--gold);
  box-shadow: 0 -8px 30px rgba(35,31,32,.15);
  padding: 20px 0; display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { flex: 1 1 380px; font-size: .9rem; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.small { padding: 9px 22px; font-size: .88rem; }
.btn.outline { background: transparent; border: 1.5px solid var(--ink-soft); color: var(--ink); }
.btn.outline:hover { background: var(--gold-deep); color: var(--white); border-color: var(--gold-deep); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
    align-items: flex-start;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .grid.cols-3, .grid.cols-2, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 52px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
  .brand-name { font-size: 1rem; }
}

/* ---------- photography ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(35,31,32,.10); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person .photo {
  width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 18px;
  overflow: hidden; border: 3px solid var(--gold); background: var(--cream-deep);
}
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person .pcontact { font-size: .88rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; }
.firm-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; margin-top: 44px; }
.firm-photos .photo-frame { aspect-ratio: 16/10; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .firm-photos { grid-template-columns: 1fr; }
}
