/* =====================================================
   Yuan Law Group — Premium Personal Injury Website
   Theme: Trust · Care · Results · Bilingual Access
   ===================================================== */

:root {
  --navy: #0a1f38;
  --navy-deep: #061525;
  --navy-mid: #123056;
  --navy-soft: #1a3a5c;
  --gold: #c4a35a;
  --gold-light: #d4bc7d;
  --gold-dark: #a88b3d;
  --cream: #f7f4ef;
  --cream-dark: #ebe6dc;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5a6570;
  --text-light: #8a939e;
  --border: rgba(10, 31, 56, 0.1);
  --shadow: 0 12px 40px rgba(10, 31, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 56, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-sans: "Source Sans 3", "Noto Sans SC", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ----- Utilities ----- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-label {
  justify-content: center;
}

.section-header.centered .section-label::before {
  display: none;
}

.section-header.centered .section-lead {
  margin-inline: auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  padding-inline: 0.5rem;
}

.btn-ghost:hover {
  color: var(--gold-light);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch button.active {
  background: var(--gold);
  color: var(--navy-deep);
}

.lang-switch button:hover:not(.active) {
  color: var(--white);
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(10, 31, 56, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}

.logo-text span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: 6px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.nav-phone small {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-phone a {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.nav-phone a:hover {
  color: var(--gold-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: var(--transition);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  min-height: calc(100vh - 120px);
  min-height: min(720px, calc(100vh - 120px));
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(26, 58, 92, 0.8), transparent),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.03));
  border-left: 1px solid rgba(196, 163, 90, 0.08);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196, 163, 90, 0.15);
  border: 1px solid rgba(196, 163, 90, 0.35);
  color: var(--gold-light);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-badge .stars {
  color: var(--gold);
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
}

.hero-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(196, 163, 90, 0.4);
  background: var(--navy-mid);
  aspect-ratio: 4 / 5;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-portrait-card {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--white);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
  border-left: 4px solid var(--gold);
}

.hero-portrait-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.hero-portrait-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   TRUST BAR
   ===================================================== */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
}

.trust-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.15);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.trust-item .icon svg {
  width: 20px;
  height: 20px;
}

.trust-item strong {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =====================================================
   PRACTICE AREAS
   ===================================================== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.practice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 163, 90, 0.3);
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.practice-icon svg {
  width: 26px;
  height: 26px;
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.practice-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.practice-card .link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.practice-card:hover .link {
  gap: 0.6rem;
}

/* =====================================================
   WHY US / CARE THEME
   ===================================================== */
.why-section {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-visual img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  background: var(--white);
  display: block;
}

/* Caption sits under the photo so faces stay fully visible */
.why-visual-caption {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.35rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.why-visual-caption strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.why-visual-caption span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.feature-item h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================================================
   ABOUT / JENNIFER
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  object-position: top center;
  box-shadow: var(--shadow-lg);
}

.about-photo-accent {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.credential-tag {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.about-bio {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-bio + .about-bio {
  margin-bottom: 1.5rem;
}

/* =====================================================
   BILINGUAL BANNER
   ===================================================== */
.bilingual-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.bilingual-banner::before {
  content: "中文";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  line-height: 1;
}

.bilingual-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.bilingual-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.bilingual-banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 480px;
}

.bilingual-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bilingual-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem 1.15rem;
  border-radius: 10px;
  font-weight: 500;
}

.bilingual-points li svg {
  flex-shrink: 0;
  color: var(--gold);
  width: 20px;
  height: 20px;
}

/* =====================================================
   REVIEWS / TESTIMONIALS
   ===================================================== */
.reviews-section {
  background: var(--white);
}

.reviews-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  padding: 1rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.google-rating .score {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
}

.google-rating .meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.google-rating .stars {
  color: #f4b400;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.google-rating .meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid transparent;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card:hover {
  border-color: rgba(196, 163, 90, 0.35);
  box-shadow: var(--shadow);
  background: var(--white);
}

.review-stars {
  color: #f4b400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.review-card blockquote {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.review-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reviews-more {
  text-align: center;
  margin-top: 2.5rem;
}

.theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.theme-tag {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

.theme-tag span {
  color: var(--gold);
  margin-right: 0.35rem;
}

/* =====================================================
   PROCESS
   ===================================================== */
.process-section {
  background: var(--navy-deep);
  color: var(--white);
}

.process-section .section-label {
  color: var(--gold);
}

.process-section .section-title {
  color: var(--white);
}

.process-section .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 3.5rem 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: rgba(10, 31, 56, 0.75);
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.cta-band .btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(10, 31, 56, 0.3);
}

.cta-band .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.cta-band .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(196, 163, 90, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-detail .icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-detail a,
.contact-detail span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contact-form > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Web3Forms honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8a1f17;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-error[hidden] {
  display: none !important;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at right, rgba(196, 163, 90, 0.12), transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--gold-light);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 560px;
}

/* =====================================================
   CONTENT PAGES
   ===================================================== */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 2rem 0 0.85rem;
}

.content-block h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 1.5rem 0 0.65rem;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-block ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.team-photo-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-photo-full img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  object-position: center top;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.value-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 3px solid var(--gold);
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.bio-sidebar {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.bio-sidebar img {
  border-radius: 10px;
  margin-bottom: 1.25rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}

.bio-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.bio-sidebar .role {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.bio-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bio-meta dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
}

/* Practice detail cards on practice page */
.practice-detail {
  display: grid;
  gap: 1.5rem;
}

.practice-detail-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.practice-detail-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(196, 163, 90, 0.3);
}

.practice-detail-card h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.practice-detail-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.practice-detail-card ul {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.practice-detail-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.practice-detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo-text strong {
  color: var(--white);
}

.footer .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  margin-top: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.15rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  align-items: flex-start;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
  max-width: 520px;
  line-height: 1.5;
}

/* =====================================================
   FLOATING CALL BUTTON (mobile)
   ===================================================== */
.float-cta {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  background: var(--gold);
  color: var(--navy-deep);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(196, 163, 90, 0.45);
  place-items: center;
}

.float-cta svg {
  width: 24px;
  height: 24px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 1024px) {
  .nav-phone {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-portrait {
    justify-self: center;
    order: -1;
    width: min(100%, 320px);
  }

  .hero-portrait-card {
    left: -0.5rem;
    bottom: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .about-grid,
  .bilingual-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    align-items: center;
  }

  .bio-sidebar img {
    margin-bottom: 0;
  }

  .team-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .hide-sm {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + 36px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--cream);
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .practice-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .practice-detail-card {
    grid-template-columns: 1fr;
  }

  .practice-detail-card ul {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .float-cta {
    display: grid;
  }

  .section {
    padding: 3.5rem 0;
  }

  .bio-sidebar {
    grid-template-columns: 1fr;
  }

  .bio-sidebar img {
    max-width: 200px;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/*
  Language toggle — only hide the inactive language.
  Active language keeps whatever display the component CSS already sets.
*/
html:not([lang="zh"]) .lang-zh {
  display: none !important;
}

html[lang="zh"] .lang-en {
  display: none !important;
}
