/* ==========================================================
   沪派律师事务所 - 主样式表
   设计系统：深蓝 #014DB2 + 金色 #F59E0B + 暖白 #F9F9F9 + 深灰 #0A1628
   字体：Noto Serif SC（标题）+ Noto Sans SC（正文）
   ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #014DB2;
  --blue-dark: #003D8F;
  --blue-light: #EFF6FF;
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --white: #FFFFFF;
  --warm-white: #F9F9F9;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --dark: #0A1628;
  --dark-secondary: #162B4E;
  --max-width: 1200px;
  --nav-height: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Noto Serif SC', serif; color: var(--dark); }
h1 { font-size: 3.25rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 720px; text-align: center; }
.section-label { font-size: 0.8125rem; font-weight: 600; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 0.375rem; }

/* --- Container --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); background: var(--white); border-bottom: 1px solid #EAEAEA; }
.nav-inner { display: flex; align-items: center; height: 100%; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { display: inline-flex; align-items: center; padding: 10px 24px; background: var(--gold); color: var(--white); font-size: 0.875rem; font-weight: 500; border-radius: 4px; border: none; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; margin-left: 2rem; flex-shrink: 0; }
.nav-cta:hover { opacity: 0.9; color: var(--white); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-mobile-menu { display: none; }

/* --- Dark Nav (detail pages) --- */
.nav-dark { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-dark .nav-links a { color: rgba(255,255,255,0.85); }
.nav-dark .nav-links a:hover, .nav-dark .nav-links a.active { color: var(--gold); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, #014DB2 0%, #001645 100%); padding: calc(var(--nav-height) + 5rem) 0 5rem; color: var(--white); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* Homepage hero — two-column layout */
.home-hero { padding: calc(var(--nav-height) + 5rem) 0 5rem; }
.home-hero .hero-inner { display: flex; align-items: center; gap: 3rem; }
.hero-left { flex: 1; }
.hero-right { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image { max-width: 100%; height: auto; border-radius: 12px; }

/* Hero badge */
.hero-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.hero-badge-bar { display: block; width: 32px; height: 3px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.hero-badge-text { font-size: 1rem; color: var(--gold); font-weight: 400; }

/* Hero text */
.hero-title { color: var(--white); font-size: 3.25rem; margin-bottom: 0.5rem; font-weight: 700; line-height: 1.25; }
.hero-tagline { font-size: 1.5rem; font-family: 'Noto Serif SC', serif; color: var(--gold); letter-spacing: 4px; margin-bottom: 1rem; }
.hero-desc { font-size: 1.125rem; color: #C7D3E0; max-width: 540px; line-height: 1.8; margin-bottom: 2rem; }

/* Hero CTA buttons */
.hero-actions { display: flex; gap: 1rem; align-items: center; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: var(--gold); color: var(--white); font-weight: 500; border-radius: 4px; transition: opacity 0.2s; font-size: 1rem; }
.hero-cta:hover { opacity: 0.9; color: var(--white); }
.hero-cta-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: transparent; color: var(--white); font-weight: 400; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.3); transition: all 0.2s; font-size: 1rem; }
.hero-cta-outline:hover { border-color: var(--white); color: var(--white); }

/* Inner page hero elements */
.hero-subtitle { font-size: 1.125rem; color: #C7D3E0; max-width: 700px; line-height: 1.8; margin-bottom: 1.5rem; }
.hero-divider { width: 60px; height: 3px; background: var(--gold); margin-bottom: 2rem; }

/* Breadcrumb (for inner pages) */
.hero-breadcrumb { font-size: 0.875rem; color: #C7D3E0; margin-bottom: 1.5rem; }
.hero-breadcrumb a { color: #C7D3E0; transition: color 0.2s; }
.hero-breadcrumb a:hover { color: var(--white); }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section-light { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-title { margin-bottom: 0.75rem; }
.section-header .section-subtitle { margin: 0 auto; }

/* --- Practices Section: font overrides matching design --- */
#practicesSection .section-title { font-size: 2.25rem; }
#practicesSection .section-subtitle { font-size: 1rem; }

/* --- Lawyers Section: font overrides matching design --- */
#lawyersSection .section-title { font-size: 2.25rem; }
#lawyersSection .section-subtitle { font-size: 1rem; }

/* --- Cases Section: font overrides matching design --- */
#casesSection .section-title { font-size: 2.25rem; }
#casesSection .section-subtitle { font-size: 1rem; }

/* --- Process & Why Us Section: font overrides matching design --- */
#processSection .section-title { font-size: 2.25rem; }
#processSection .section-subtitle { font-size: 1rem; }
#whyUsSection .section-title { font-size: 2.25rem; }
#whyUsSection .section-subtitle { font-size: 1rem; }

/* --- Cards Grid --- */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); }
.case-card-bg { background: url('../images/case-bg.png') center center / cover no-repeat !important; position: relative; }
.card-body { padding: 1.5rem; }
.card-meta { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.card-title { font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.5; }
.card-excerpt { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1rem; line-height: 1.6; }
.card-link { font-size: 0.875rem; color: var(--blue); font-weight: 500; display: block; text-align: right; margin-right: 18px; margin-top: 20px; }
.card-link:hover { text-decoration: underline; }

/* --- Practice Cards --- */
.practice-card { padding: 2rem; }
.practice-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.practice-card-icon { width: 48px; height: 48px; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 1.25rem; flex-shrink: 0; }
.practice-card .card-title { font-size: 1.375rem; margin-bottom: 0; }
.practice-card-services { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--gray-400); }

/* --- Case Cards (New Design-Matched) --- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card-new { background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid #EBEBEB; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.case-card-new:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* Blue area (top) */
.case-card-top { background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); height: 100px; position: relative; padding: 1rem 1.25rem; }
.case-card-tag { display: inline-block; padding: 4px 12px; background: var(--gold); color: var(--white); font-size: 0.75rem; font-weight: 500; border-radius: 13px; line-height: 1.4; }

/* Avatar — overlaps blue/white boundary, right side */
.case-card-avatar { position: absolute; right: 20px; bottom: -28px; width: 56px; height: 56px; z-index: 2; }
.case-avatar-inner { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid #EBEBEB; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 600; color: var(--blue); font-family: 'Noto Serif SC', serif; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.case-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.case-avatar-fallback { width: 100%; height: 100%; border-radius: 50%; display: none; align-items: center; justify-content: center; background: var(--white); color: var(--blue); }

/* White area (bottom) */
.case-card-bottom { padding: 1.5rem 1.25rem; }
.case-card-title { font-family: 'Noto Serif SC', serif; font-size: 1.125rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.75; }
.case-card-desc { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 0.75rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-card-result { font-size: 0.875rem; font-weight: 600; color: #119d81; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.case-card-link { font-size: 0.875rem; color: var(--blue); font-weight: 500; display: block; text-align: right; margin-right: 30px; }
.case-card-link:hover { text-decoration: underline; }
.lawyer-card-new { flex: 0 0 282px; background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid #EBEBEB; transition: transform 0.2s, box-shadow 0.2s; }
.lawyer-card-new:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.lawyer-card-photo-new { width: 282px; height: 320px; flex-shrink: 0; display: block; text-decoration: none; color: inherit; }
.lawyer-photo-wrap { position: relative; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); overflow: hidden; }
.lawyer-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.lawyer-photo-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; font-family: 'Noto Serif SC', serif; z-index: 0; }
.lawyer-photo-wrap.no-photo .lawyer-photo-fallback { display: flex; }
.lawyer-photo-wrap.no-photo .lawyer-photo-img { display: none; }
.lawyer-card-photo-new .lawyer-photo-img { transition: transform 0.3s ease; }
.lawyer-card-photo-new:hover .lawyer-photo-img { transform: scale(1.03); }
.lawyer-card-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.lawyer-card-info-new { padding: 24px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.lawyer-card-detail-btn { display: inline-block; margin-top: 4px; padding: 6px 16px; background: var(--blue); color: var(--white); font-size: 0.8125rem; font-weight: 500; border-radius: 4px; transition: background 0.2s; align-self: flex-start; }
.lawyer-card-detail-btn:hover { background: var(--dark-secondary); }
.lawyer-card-name-new { font-family: 'Noto Serif SC', serif; font-size: 1.25rem; font-weight: 600; color: var(--dark); margin: 0; }
.lawyer-card-title-new { font-size: 0.875rem; font-weight: 400; color: var(--gray-500); margin: 0; }
.lawyer-card-specialty-new { font-size: 0.8125rem; font-weight: 500; color: var(--blue); margin: 0; }

/* --- Lawyer Carousel (Design-Matched) --- */
.lawyer-carousel-outer { display: flex; align-items: center; gap: 16px; max-width: calc(var(--max-width) + 2rem); margin: 0 auto; padding: 0 1rem; }
.lawyer-carousel-viewport { flex: 1; overflow: hidden; }
.lawyer-carousel-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 1px solid #EBEBEB; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: opacity 0.2s, box-shadow 0.2s; }
.carousel-arrow:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.18); }

/* Carousel Navigation Bottom */
.carousel-nav-bottom { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-auto-indicator { display: flex; align-items: center; gap: 6px; }
.carousel-auto-indicator svg { flex-shrink: 0; }
.carousel-auto-indicator span { font-size: 0.75rem; color: var(--gray-400); }
.carousel-dots { display: flex; align-items: center; gap: 10px; }
.carousel-dot-new { width: 8px; height: 8px; border-radius: 4px; background: #D1D5DB; border: none; cursor: pointer; padding: 0; transition: all 0.3s; }
.carousel-dot-new.active { width: 24px; background: var(--blue); }

/* --- Process --- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 2.25rem; left: 12.5%; right: 12.5%; height: 2px; background: var(--gray-200); z-index: 0; }
.process-step { text-align: center; position: relative; z-index: 1; }
.process-step-num { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; font-family: 'Noto Serif SC', serif; margin: 0 auto 1.25rem; }
.process-step-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.process-step-desc { font-size: 0.875rem; color: var(--gray-500); }

/* --- Why Us --- */
.why-us-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-us-card { text-align: center; padding: 2.5rem 2rem; }
.why-us-card-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; color: var(--blue); }
.why-us-card-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.why-us-card-desc { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.7; }

/* --- Firm Intro Section --- */
.firm-intro { background: #0A1628; color: var(--white); padding: 5rem 0; }
.firm-intro-grid { display: grid; grid-template-columns: 560px 1fr; gap: 4rem; align-items: start; margin-bottom: 3.5rem; }
.firm-intro-left { }
.firm-intro-left .section-label { margin-bottom: 1.5rem; }
.firm-intro-title { color: var(--white); font-size: 2rem; font-family: 'Noto Serif SC', serif; font-weight: 700; line-height: 1.35; margin-bottom: 1.25rem; }
.firm-intro-desc { color: #C7D3E0; font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.firm-intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.firm-intro-stat { }
.firm-intro-stat-num { font-size: 2rem; font-family: 'Noto Serif SC', serif; font-weight: 700; color: #F59E0B; margin-bottom: 0.25rem; }
.firm-intro-stat-label { font-size: 0.8125rem; color: #9CA3AF; }

.firm-intro-right { }
.firm-intro-values { display: flex; flex-direction: column; gap: 1rem; }
.firm-intro-value { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 4px; }
.firm-intro-value-title { font-size: 1.125rem; font-family: 'Noto Serif SC', serif; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.firm-intro-value-desc { font-size: 0.875rem; color: #9CA3AF; line-height: 1.55; }

.firm-intro-cta { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3rem; text-align: center; }
.firm-intro-cta h3 { color: var(--white); font-size: 2rem; margin-bottom: 0.75rem; }
.firm-intro-cta p { color: #9CA3AF; font-size: 1.0625rem; max-width: 600px; margin: 0 auto 1.5rem; }
.firm-intro-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: var(--gold); color: var(--dark); font-weight: 600; border-radius: 6px; transition: opacity 0.2s; }
.firm-intro-cta-btn:hover { opacity: 0.9; }

/* --- Standalone CTA Banner --- */
.cta-banner { background: #0A1628; color: var(--white); padding: 4rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: 2rem; font-family: 'Noto Serif SC', serif; font-weight: 700; margin-bottom: 0.75rem; }
.cta-banner p { color: #9CA3AF; font-size: 1.0625rem; max-width: 600px; margin: 0 auto 1.5rem; }
.cta-banner-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: var(--gold); color: var(--dark); font-weight: 600; border-radius: 6px; transition: opacity 0.2s; }
.cta-banner-btn:hover { opacity: 0.9; }

/* --- View More --- */
.view-more { margin-top: 20px; display: flex; justify-content: center; }
.view-more-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1.5px solid var(--blue); color: var(--blue); font-size: 0.875rem; font-weight: 500; border-radius: 4px; transition: all 0.2s; }
.view-more-btn:hover { background: var(--blue); color: var(--white); }
.view-more-btn svg { width: 16px; height: 16px; }

/* --- News Feature --- */
.news-featured { display: grid; grid-template-columns: 500px 1fr; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); margin-bottom: 2rem; }
.news-featured-image { height: 320px; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); }
.news-featured-content { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.news-featured-tag { display: inline-block; padding: 0.25rem 0.75rem; background: var(--blue-light); color: var(--blue); font-size: 0.75rem; font-weight: 500; border-radius: 4px; margin-bottom: 1rem; margin-right: auto; }
.news-featured-title { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.4; }
.news-featured-excerpt { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1.25rem; }
.news-featured-meta { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 1rem; }
.news-featured-link { font-size: 0.875rem; color: var(--blue); font-weight: 500; }

/* --- Category Tabs --- */
.tabs { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tab { padding: 0.5rem 1.25rem; border-radius: 20px; background: var(--gray-100); color: var(--gray-500); font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.2s; }
.tab:hover { background: var(--gray-200); color: var(--gray-700); }
.tab.active { background: var(--blue); color: var(--white); }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.pagination .page-btn { padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; color: var(--gray-500); transition: all 0.2s; }
.pagination .page-btn:hover { color: var(--blue); }
.pagination .page-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--gray-500); }
.pagination .page-num.active { background: var(--blue); color: var(--white); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.contact-info-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--blue); flex-shrink: 0; }
.contact-info-label { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.contact-info-value { font-size: 1.0625rem; font-weight: 500; color: var(--dark); }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.contact-form h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }

/* Contact QR codes */
.contact-qr-sections { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.contact-qr-section { }
.contact-qr-section-title { font-size: 0.9375rem; font-weight: 600; color: var(--dark); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-200); }
.contact-qr-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.contact-qr-item { text-align: center; }
.contact-qr-img { width: 110px; height: 110px; border-radius: 8px; border: 1px solid var(--gray-200); object-fit: cover; }
.contact-qr-placeholder { width: 110px; height: 110px; border-radius: 8px; border: 2px dashed var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--gray-400); text-align: center; background: var(--gray-50); line-height: 1.4; }
.contact-qr-label { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--gray-400); }

/* Contact map + transport section */
.contact-map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-map-title { font-size: 1.375rem; font-weight: 700; color: var(--dark); margin-bottom: 1.25rem; }
.contact-map-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.contact-map-links { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.875rem; }
.contact-map-links a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
.contact-map-links a:hover { color: var(--amber); }
.map-link-divider { color: var(--gray-300); }
.contact-transport { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.transport-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.transport-item:last-child { margin-bottom: 0; }
.transport-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.transport-label { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.transport-text { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.6; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 6px;
  font-size: 0.9375rem; font-family: inherit; color: var(--dark); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: var(--blue); color: var(--white); font-weight: 600; font-size: 1rem; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1.5px solid var(--blue); color: var(--blue); font-size: 0.875rem; font-weight: 500; background: transparent; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* --- About Page --- */

/* Section Header */
.about-section-header { text-align: center; margin-bottom: 3rem; }
.about-section-en { font-size: 0.875rem; font-weight: 600; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.about-section-title { font-size: 2.25rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 700; margin-bottom: 0.75rem; }
.about-section-divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto; }
.about-section-header--light .about-section-en { color: var(--gold); }
.about-section-header--light .about-section-title { color: #fff; }

/* Hero */
.about-hero { background: linear-gradient(135deg, #014DB2 0%, #001645 100%); padding: calc(var(--nav-height) + 3rem) 0 3rem; }
.about-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; }
.about-hero-bc { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.about-hero-title { font-size: 3.25rem; font-family: 'Noto Serif SC', serif; color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.about-hero-slogan { font-size: 1.375rem; font-family: 'Noto Serif SC', serif; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.about-hero-desc { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 560px; }
.about-hero-right { display: flex; flex-direction: column; gap: 1rem; }
.about-stat-card { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; background: rgba(255,255,255,0.06); border-radius: 12px; }
.about-stat-num { font-size: 2.25rem; font-family: 'Noto Serif SC', serif; color: var(--gold); font-weight: 700; }
.about-stat-label { font-size: 0.9375rem; color: rgba(255,255,255,0.6); }

/* Firm Intro */
.about-intro { padding: 5rem 0; background: #fff; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-intro-en { font-size: 0.875rem; font-weight: 600; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.about-intro-title { font-size: 2.25rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 700; margin-bottom: 0.75rem; }
.about-intro-divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1rem 0 1.5rem; }
.about-intro-desc { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 1.25rem; }
.about-intro-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.about-intro-feature { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--gray-700); }
.about-intro-feature-icon { width: 20px; height: 20px; flex-shrink: 0; }
.about-intro-img { width: 100%; height: 400px; border-radius: 12px; object-fit: cover; display: block; }
.about-intro-img-placeholder { width: 100%; height: 400px; border-radius: 12px; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; font-family: 'Noto Serif SC', serif; }

/* Timeline */
.about-timeline { padding: 5rem 0; background: var(--warm-white); }
.about-timeline-list { display: flex; flex-direction: column; }
.about-timeline-item { display: grid; grid-template-columns: 100px 40px 1fr; gap: 0; }
.about-timeline-year { font-size: 1.75rem; font-family: 'Noto Serif SC', serif; color: var(--gold); font-weight: 700; padding-top: 1.25rem; }
.about-timeline-dot-col { display: flex; flex-direction: column; align-items: center; padding-top: 1.5rem; }
.about-timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blue); flex-shrink: 0; }
.about-timeline-line { width: 2px; flex: 1; background: #D1D5DB; margin-top: 4px; }
.about-timeline-card { padding: 1.25rem 1.5rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-left: 1rem; margin-bottom: 1rem; }
.about-timeline-title { font-size: 1.125rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 600; margin-bottom: 0.375rem; }
.about-timeline-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* Core Values */
.about-values { padding: 5rem 0; background: #fff; }
.about-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.about-value-card { padding: 2rem 1.75rem; background: var(--warm-white); border-radius: 12px; }
.about-value-icon { width: 48px; height: 48px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.about-value-icon svg { display: block; }
.about-value-title { font-size: 1.25rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 600; margin-bottom: 0.75rem; }
.about-value-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* Honors */
.about-honors { padding: 5rem 0; background: var(--dark); }
.about-honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.about-honor-card { padding: 2rem 1.5rem; background: rgba(255,255,255,0.05); border-radius: 12px; text-align: center; }
.about-honor-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.about-honor-icon svg { display: block; }
.about-honor-title { font-size: 1rem; font-family: 'Noto Serif SC', serif; color: #fff; font-weight: 600; margin-bottom: 0.5rem; }
.about-honor-year { font-size: 0.8125rem; color: var(--gray-400); }

/* CTA */
.about-cta { padding: 5rem 0; background: #fff; text-align: center; }
.about-cta-title { font-size: 2.25rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 700; margin-bottom: 0.75rem; }
.about-cta-desc { font-size: 1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 2rem; }
.about-cta-btns { display: flex; gap: 1rem; justify-content: center; }
.about-cta-btn-primary { padding: 0.75rem 2rem; background: var(--gold); color: #fff; border-radius: 6px; font-weight: 500; transition: opacity 0.2s; }
.about-cta-btn-primary:hover { opacity: 0.9; }
.about-cta-btn-outline { padding: 0.75rem 2rem; border: 1px solid var(--blue); color: var(--blue); border-radius: 6px; font-weight: 500; transition: all 0.2s; }
.about-cta-btn-outline:hover { background: var(--blue); color: #fff; }

/* --- Lawyer Detail --- */

/* Section Header (EN + CN pattern) */
.ld-section-header { text-align: center; margin-bottom: 2.5rem; }
.ld-section-en { font-size: 0.8125rem; font-weight: 600; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.ld-section-cn { font-size: 1.875rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 700; }
.ld-section-header-left { text-align: left; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.ld-section-header-left .ld-section-cn { margin-bottom: 0; }

/* Hero Section — 3-column layout */
.lawyer-hero { background: #F9F9F9; padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem; }
.lawyer-hero .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.lawyer-hero-grid { display: grid; grid-template-columns: 320px 1fr 300px; gap: 2.5rem; align-items: start; }

/* Photo Frame */
.lawyer-hero-photo { width: 320px; height: 440px; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid #000; background: linear-gradient(135deg, var(--blue) 0%, var(--dark-secondary) 100%); }
.lawyer-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyer-hero-photo .fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #fff; font-size: 6rem; font-family: 'Noto Serif SC', serif; }
.lawyer-hero-photo.no-img img { display: none; }
.lawyer-hero-photo.no-img .fallback { display: flex; }

/* Hero Info */
.lawyer-hero-bc { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 1rem; }
.lawyer-hero-bc a { color: var(--gray-400); text-decoration: none; }
.lawyer-hero-bc a:hover { color: var(--blue); }
.lawyer-hero-bc .current { color: var(--blue); }
.lawyer-hero-name { font-size: 2.25rem; font-family: 'Noto Serif SC', serif; color: var(--dark); font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; }
.lawyer-hero-role { font-size: 1.125rem; color: var(--blue); font-weight: 500; margin-bottom: 1.25rem; }

/* Specialty Tags */
.lawyer-hero-tags { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.5rem; }
.lawyer-hero-tag { background: #E8EFFB; color: var(--blue); font-size: 0.8125rem; padding: 0.375rem 0.875rem; border-radius: 4px; font-weight: 500; }

/* Hero Intro */
.lawyer-hero-intro { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 1.75rem; }

/* Hero Buttons */
.lawyer-hero-btns { display: flex; gap: 1rem; }
.lawyer-hero-btn { padding: 0.75rem 1.75rem; border-radius: 6px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: all 0.2s; display: inline-block; text-align: center; }
.lawyer-hero-btn-primary { background: var(--blue); color: #fff; }
.lawyer-hero-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.lawyer-hero-btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.lawyer-hero-btn-outline:hover { background: var(--blue); color: #fff; }

/* Contact Card (right column) */
.lawyer-contact-card { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.lawyer-contact-card h3 { font-size: 1.125rem; color: var(--dark); margin-bottom: 1rem; }
.lawyer-contact-qr-row { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.lawyer-contact-qr-img { width: 100px; height: 100px; border-radius: 6px; border: 1px solid var(--gray-200); object-fit: cover; }
.lawyer-contact-qr-placeholder { width: 100px; height: 100px; border-radius: 6px; border: 2px dashed var(--gray-300); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.75rem; text-align: center; }
.lawyer-contact-qr-info { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.6; }
.lawyer-contact-qr-info strong { color: var(--dark); }
.lawyer-contact-divider { border: none; border-top: 1px solid var(--gray-200); margin: 1rem 0; }
.lawyer-contact-social h4 { font-size: 0.875rem; color: var(--dark); margin-bottom: 0.75rem; }
.lawyer-contact-social-row { display: flex; gap: 0.625rem; flex-wrap: wrap; justify-content: space-between; }

/* Social media icon buttons */
.lawyer-social-item { position: relative; }
.lawyer-social-btn { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; background: transparent; padding: 0; overflow: hidden; }
.lawyer-social-btn:hover { transform: scale(1.1); }
.lawyer-social-btn svg, .lawyer-social-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Social label */
.lawyer-social-label { display: block; text-align: center; font-size: 0.625rem; color: var(--gray-400); margin-top: 0.25rem; }

/* Hover QR popup */
.lawyer-social-qr-popup { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); padding: 0.625rem; z-index: 100; width: 120px; text-align: center; }
.lawyer-social-qr-popup::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.lawyer-social-item:hover .lawyer-social-qr-popup { display: block; }
.lawyer-social-qr-popup img { width: 100px; height: 100px; border-radius: 4px; object-fit: cover; }
.lawyer-social-qr-popup .qr-placeholder { width: 100px; height: 100px; border-radius: 4px; border: 2px dashed var(--gray-300); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.6875rem; margin: 0 auto; }
.lawyer-social-qr-popup .qr-label { font-size: 0.6875rem; color: var(--gray-500); margin-top: 0.375rem; }

/* Professional Profile Section */
.ld-profile { padding: 5rem 0; background: #fff; }
.ld-profile .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.ld-profile-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ld-profile-card { background: #F9F9F9; border-radius: 8px; padding: 1.75rem; }
.ld-profile-icon { width: 40px; height: 40px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ld-profile-icon svg { width: 20px; height: 20px; }
.ld-profile-label { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.ld-profile-value { font-size: 1rem; color: var(--dark); font-weight: 500; line-height: 1.6; }

/* Practice Areas Section */
.ld-practice { padding: 5rem 0; background: #F9F9F9; }
.ld-practice .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.ld-practice-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ld-practice-card { background: #fff; border-radius: 8px; padding: 1.75rem; transition: transform 0.2s, box-shadow 0.2s; }
.ld-practice-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ld-practice-num { width: 44px; height: 44px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ld-practice-num span { font-size: 1.1rem; font-weight: 700; color: var(--gold); font-family: 'Noto Serif SC', serif; }
.ld-practice-card h3 { font-size: 1.125rem; color: var(--dark); margin-bottom: 0.5rem; font-family: 'Noto Serif SC', serif; }
.ld-practice-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* Representative Cases Section */
.ld-cases { padding: 5rem 0; background: #fff; }
.ld-cases .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.ld-case-item { display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem; background: #F9F9F9; border-radius: 8px; padding: 1.75rem; margin-bottom: 1rem; }
.ld-case-left { display: flex; flex-direction: column; gap: 0.75rem; }
.ld-case-type { background: var(--blue); color: #fff; font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 4px; text-align: center; font-weight: 500; white-space: nowrap; }
.ld-case-year { font-size: 1.5rem; color: var(--blue); font-family: 'Noto Serif SC', serif; font-weight: 700; }
.ld-case-right h3 { font-size: 1.125rem; color: var(--dark); margin-bottom: 0.5rem; font-family: 'Noto Serif SC', serif; }
.ld-case-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 0.75rem; }
.ld-case-result { font-size: 0.8125rem; color: var(--blue); display: flex; align-items: center; gap: 0.375rem; }
.ld-case-result::before { content: '✦'; font-size: 0.75rem; }

/* Case card grid — uses same .case-card-new style as homepage, 3 columns */
.lawyer-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Placeholder states */
.ld-empty { text-align: center; padding: 3rem 1.5rem; color: var(--gray-400); background: #F9F9F9; border-radius: 8px; }
.ld-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--gray-300); }
.ld-empty-title { font-size: 1rem; color: var(--gray-500); margin-bottom: 0.375rem; }
.ld-empty-desc { font-size: 0.8125rem; color: var(--gray-400); }

/* Articles Section */
.ld-articles { padding: 5rem 0; background: #F9F9F9; }
.ld-articles .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.ld-articles-more { font-size: 0.875rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.ld-articles-more:hover { text-decoration: underline; }
.ld-article-item { background: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 0.75rem; display: flex; gap: 1.25rem; align-items: flex-start; }
.ld-article-date { font-size: 0.8125rem; color: var(--gray-400); white-space: nowrap; padding-top: 0.125rem; }
.ld-article-info h4 { font-size: 1rem; color: var(--dark); margin-bottom: 0.375rem; }
.ld-article-info p { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* Existing back link — keep but reposition */
.lawyer-detail-back { display: inline-block; font-size: 0.9375rem; color: var(--blue); margin-bottom: 1.5rem; text-decoration: none; }
.lawyer-detail-back:hover { text-decoration: underline; }

/* --- News/Article Detail --- */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-detail-header { text-align: center; margin-bottom: 2.5rem; }
.article-detail-title { font-size: 2rem; line-height: 1.4; margin-bottom: 1rem; }
.article-detail-meta { font-size: 0.9375rem; color: var(--gray-400); }
.article-detail-content { font-size: 1.0625rem; line-height: 1.9; color: var(--gray-700); }
.article-detail-content p { margin-bottom: 1.25rem; }
.article-detail-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--blue); font-weight: 500; margin-bottom: 2rem; }
.article-detail-back:hover { text-decoration: underline; }

/* --- Footer --- */
.footer { background: #060E1F; color: #C7D3E0; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-brand-logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand-desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; color: #6B7280; }
.footer-qr-row { display: flex; gap: 1rem; }
.footer-qr-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-qr-placeholder { width: 100px; height: 100px; background: rgba(255,255,255,0.08); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: #6B7280; text-align: center; line-height: 1.3; }
.footer-qr-img { width: 100px; height: 100px; border-radius: 6px; object-fit: cover; }
.footer-qr-label { font-size: 0.6875rem; color: #6B7280; }
.lawyer-card-photo-link { display: block; text-decoration: none; color: inherit; }
.lawyer-card-photo-link .lawyer-photo-wrap { transition: transform 0.2s; }
.lawyer-card-photo-link:hover .lawyer-photo-wrap { transform: translateY(-2px); }
.footer-title { display: inline-block; padding: 4px 12px; background: #F59E0B; color: #060E1F; font-size: 0.8125rem; font-weight: 600; border-radius: 5px; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: #C7D3E0; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.875rem; }
.footer-contact-item .label { color: var(--gray-400); flex-shrink: 0; min-width: 3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: #6B7280; }
.footer-icp-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-icp-link:hover { color: #9CA3AF; text-decoration: underline; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map-grid { grid-template-columns: 1fr; }
  .contact-map-frame iframe { height: 300px; }
  .news-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .lawyer-detail-header { grid-template-columns: 1fr; }
  .lawyer-carousel .lawyer-card { flex: 0 0 calc((100% - 1.5rem) / 2); min-width: calc((100% - 1.5rem) / 2); }
  .lawyer-card-new { flex: 0 0 240px; }
  .lawyer-card-photo-new { width: 240px; height: 272px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .lawyer-carousel-outer { gap: 8px; }
  .home-hero .hero-inner { flex-direction: column; text-align: center; }
  .hero-right { display: none; }
  .hero-actions { justify-content: center; }
  .hero-desc { max-width: 100%; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .lawyer-case-grid { grid-template-columns: repeat(2, 1fr); }
  .firm-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .firm-intro-stats { grid-template-columns: repeat(3, 1fr); }
  /* About page — tablet */
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-right { max-width: 400px; margin: 0 auto; width: 100%; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-honors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile-menu.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-200); }
  .nav-mobile-menu.open a { display: block; padding: 0.75rem 1rem; font-weight: 500; }
  h1, .hero-title, .home-hero .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1.125rem; letter-spacing: 2px; }
  .hero { padding: calc(var(--nav-height) + 3rem) 0 3rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-cta, .hero-cta-outline { width: 100%; justify-content: center; }
  .section { padding: 3rem 0; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-us-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .lawyer-carousel .lawyer-card { flex: 0 0 85%; min-width: 85%; }
  .lawyer-card-new { flex: 0 0 260px; }
  .lawyer-card-photo-new { width: 260px; height: 295px; }
  .lawyer-carousel-outer { padding: 0 0.5rem; gap: 6px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-auto-indicator { display: none; }
  /* About page — mobile */
  .about-hero { padding: calc(var(--nav-height) + 2rem) 0 2rem; }
  .about-hero-title { font-size: 2rem; }
  .about-hero-slogan { font-size: 1.125rem; }
  .about-stat-card { padding: 1rem; }
  .about-stat-num { font-size: 1.75rem; }
  .about-intro, .about-timeline, .about-values, .about-honors, .about-cta { padding: 3rem 0; }
  .about-intro-img, .about-intro-img-placeholder { height: 280px; }
  .about-timeline-item { grid-template-columns: 60px 30px 1fr; }
  .about-timeline-year { font-size: 1.25rem; }
  .about-values-grid, .about-honors-grid { grid-template-columns: 1fr; }
  .about-cta-title { font-size: 1.75rem; }
  .about-cta-btns { flex-direction: column; align-items: center; }
  .about-cta-btn-primary, .about-cta-btn-outline { width: 100%; max-width: 280px; }
  /* Lawyer Detail — mobile */
  .lawyer-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .lawyer-hero-photo { width: 100%; max-width: 280px; height: auto; aspect-ratio: 3/4; margin: 0 auto; }
  .lawyer-hero-name { font-size: 2rem; }
  .lawyer-hero-btns { flex-direction: column; }
  .lawyer-hero-btn { width: 100%; }
  .lawyer-contact-card { max-width: 100%; }
  .ld-profile-cards { grid-template-columns: repeat(2, 1fr); }
  .ld-practice-cards { grid-template-columns: 1fr; }
  .ld-case-item { grid-template-columns: 1fr; }
  .ld-case-left { flex-direction: row; align-items: center; }
  .lawyer-case-grid { grid-template-columns: 1fr; }
  .lawyer-contact-social-row { justify-content: flex-start; }
  .ld-article-item { flex-direction: column; gap: 0.5rem; }
  .ld-section-header-left { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .firm-intro-grid { grid-template-columns: 1fr; }
  .firm-intro-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .firm-intro-title { font-size: 1.5rem; }
  .firm-intro-cta h3, .cta-banner h2 { font-size: 1.5rem; }
  .article-detail-title { font-size: 1.5rem; }
}
