/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text); line-height: 1.8; overflow-x: hidden;
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ===== COLORS ===== */
:root {
  --navy:   #0c1e3c;
  --navy2:  #122548;
  --navy3:  #1a2d52;
  --gold:   #b8913a;
  --gold2:  #d4aa55;
  --gold3:  #a0782e;
  --cream:  #f8f6f1;
  --white:  #ffffff;
  --gray-50: #faf8f5;
  --gray-100: #f0ede8;
  --gray-200: #e2e4e9;
  --gray-400: #8e94a0;
  --gray-600: #5e6577;
  --gray-800: #2c3040;
  --text:   #1c1c2e;
  --shadow-sm: 0 1px 3px rgba(12,30,60,0.06);
  --shadow: 0 4px 20px rgba(12,30,60,0.08);
  --shadow-lg: 0 12px 40px rgba(12,30,60,0.12);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Noto Serif SC', 'Source Han Serif SC', serif;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 5rem 0; }

/* ===== TYPOGRAPHY ===== */
.section-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
  font-family: 'Nunito Sans', sans-serif;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy); margin-bottom: 1rem; line-height: 1.15;
}
.section-subtitle {
  color: var(--gray-600); font-size: 1.05rem; font-weight: 300;
  margin-bottom: 3rem; max-width: 600px; line-height: 1.7;
}
.section-rule {
  width: 60px; height: 2px; background: var(--gold);
  margin: 1.2rem 0 2rem;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-1 { transition-delay: 0.1s; }
.fade-up-2 { transition-delay: 0.25s; }
.fade-up-3 { transition-delay: 0.4s; }
.fade-up-4 { transition-delay: 0.55s; }
.fade-up-5 { transition-delay: 0.7s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); padding: 0 5%;
  transition: var(--transition);
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar.scrolled { height: 62px; box-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.15rem; color: var(--white);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.03em;
}
.nav-logo em { font-style: normal; color: var(--gold2); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55); padding: 0.5rem 1rem;
  border-radius: 6px; transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 600; letter-spacing: 0.06em;
  padding: 0.5rem 1.4rem !important; border-radius: 6px !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--gold2) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(184,145,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,145,58,0.08) 0%, transparent 60%);
  top: -10%; right: -5%;
  animation: floatOrb 8s ease-in-out infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.hero-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 1.2rem;
}
.hero-name { font-size: clamp(2.4rem, 4.5vw, 4rem); color: var(--white); margin-bottom: 0.5rem; font-family: 'Lora', serif; font-weight: 400; letter-spacing: 0.02em; }
.hero-title { font-size: 1.05rem; color: rgba(255,255,255,0.6); margin-bottom: 0.8rem; line-height: 1.6; font-weight: 300; }
.hero-tagline { font-size: 1.15rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem; font-weight: 300; letter-spacing: 0.04em; }
.hero-rule { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-photo {
  width: 130px; height: 130px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 30px rgba(184,145,58,0.25);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer; transition: var(--transition); border: none;
  font-family: 'Nunito Sans', sans-serif;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,145,58,0.3); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-gold-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.hero-stat-item { text-align: center; }
.hero-stat-number { font-family: 'Lora', serif; font-size: 1.8rem; color: var(--gold2); font-weight: 400; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 4px; letter-spacing: 0.04em; }

/* ===== PAGE BANNER ===== */
.page-banner {
  padding: 120px 0 4rem; text-align: center;
  background: var(--navy); position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 80%, rgba(184,145,58,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.page-banner h1 { font-family: 'Lora', serif; font-size: clamp(2rem, 3.5vw, 3rem); color: var(--white); font-weight: 400; margin-bottom: 0.8rem; position: relative; z-index: 1; }
.page-banner p { color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto; font-weight: 300; font-size: 0.95rem; position: relative; z-index: 1; }
.page-banner-rule { width: 50px; height: 2px; background: var(--gold); margin: 1.2rem auto 0; }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card-icon { font-family: 'Lora', serif; font-size: 1.6rem; margin-bottom: 1rem; color: var(--gold); }
.card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.75rem; }
.card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; font-weight: 300; }
.card-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}

/* ===== PRACTICE AREAS (detail page) ===== */
.practice-block {
  margin-bottom: 3rem; background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.practice-block:last-child { margin-bottom: 0; }
.practice-block h2 {
  font-family: 'Lora', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 0.5rem;
  padding-left: 16px; border-left: 3px solid var(--gold); font-weight: 400;
}
.practice-block > p { color: var(--gray-600); margin-bottom: 1.5rem; font-weight: 300; font-size: 0.95rem; }
.practice-item {
  padding: 1.2rem 0; border-bottom: 1px solid var(--gray-100);
}
.practice-item:last-child { border-bottom: none; }
.practice-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.practice-item h3 span { color: var(--gold); margin-right: 8px; font-family: 'Lora', serif; }
.practice-item p { color: var(--gray-600); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }

/* ===== CASE CARDS ===== */
.case-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  margin-bottom: 24px; border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow); }
.case-card:last-child { margin-bottom: 0; }
.case-body { padding: 2rem 2.2rem; }
.case-body h3 { font-family: 'Lora', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 1rem; }
.case-body h3 span { color: var(--gold); margin-right: 8px; }
.case-meta { display: grid; gap: 16px; }
.case-meta-item h4 { font-size: 0.75rem; color: var(--gold); margin-bottom: 4px; letter-spacing: 0.1em; text-transform: uppercase; font-family: 'Nunito Sans', sans-serif; font-weight: 600; }
.case-meta-item p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; font-weight: 300; }
.case-result {
  background: var(--navy); color: var(--white); padding: 1rem 2.2rem;
  display: flex; align-items: center; gap: 12px; font-size: 0.95rem;
}
.case-result strong { color: var(--gold2); font-family: 'Lora', serif; }

/* ===== ARTICLE CARDS ===== */
.article-list { max-width: 900px; margin: 0 auto; }
.article-item {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 2.2rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); cursor: pointer;
  transition: var(--transition);
}
.article-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.article-item h3 { font-family: 'Lora', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.article-item .article-meta { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 0.6rem; }
.article-item p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.7; font-weight: 300; }
.article-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.15rem 0.7rem; border-radius: 3px;
  background: rgba(184,145,58,0.1); color: var(--gold3);
  margin-right: 6px; margin-bottom: 6px;
}

/* ===== CONSULTATION / CONTACT ===== */
.consult-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.consult-info h2 { font-family: 'Lora', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; }
.consult-info h3 { font-family: 'Lora', serif; font-size: 1.05rem; color: var(--navy); margin-top: 24px; margin-bottom: 8px; }
.consult-info p { color: var(--gray-600); margin-bottom: 8px; line-height: 1.7; font-weight: 300; font-size: 0.95rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.contact-item-icon { font-size: 1.1rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-item-text { color: var(--gray-600); font-size: 0.9rem; font-weight: 300; }
.contact-item-text strong { color: var(--navy); font-weight: 600; }

.consult-form, .contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.03em; }
.form-group label .required { color: #c0392b; }
.form-control {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--gray-200);
  border-radius: 6px; font-size: 0.95rem; font-family: 'Nunito Sans', sans-serif;
  transition: var(--transition); background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,145,58,0.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: auto; }
.form-submit { width: 100%; justify-content: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.55); padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: 'Lora', serif; color: var(--gold2); font-size: 1.2rem; margin-bottom: 12px; font-weight: 400; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 360px; font-weight: 300; }
.footer-col h4 { font-size: 0.85rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; font-family: 'Nunito Sans', sans-serif; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 0.6rem; transition: var(--transition); font-weight: 300; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0; text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.3); line-height: 1.8;
}
.footer-bottom a { color: var(--gold); }

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: rgba(184,145,58,0.06); border: 1px solid rgba(184,145,58,0.2); border-radius: 6px;
  padding: 1rem 1.5rem; font-size: 0.82rem; color: #7a6630;
  margin-top: 1.5rem; line-height: 1.6;
}

/* ===== STICKY PHONE ===== */
.sticky-phone {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--gold); color: var(--navy); font-weight: 600;
  padding: 0.85rem 1.6rem; border-radius: 50px; font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(184,145,58,0.35);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition); border: none; cursor: pointer;
}
.sticky-phone:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(184,145,58,0.45); }

/* ===== CREDENTIAL LIST (about page) ===== */
.cred-list { margin: 1.5rem 0; }
.cred-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem; color: var(--gray-600); font-weight: 300;
}
.cred-item:first-child { border-top: 1px solid var(--gray-100); }
.cred-dash { width: 16px; height: 1.5px; background: var(--gold); flex-shrink: 0; }

/* ===== MEMBERSHIP GRID ===== */
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.mem-card { background: var(--white); padding: 1.2rem 1.5rem; transition: var(--transition); }
.mem-card:hover { background: var(--gray-50); }
.mem-org { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold3); margin-bottom: 0.3rem; }
.mem-desc { font-size: 0.82rem; color: var(--gray-600); font-weight: 300; line-height: 1.5; }

/* ===== SIDEBAR DETAILS ===== */
.sidebar-details { margin-top: 1.5rem; }
.sidebar-item {
  padding: 0.9rem 0; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.sidebar-item:first-child { border-top: 1px solid var(--gray-100); }
.sidebar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; }
.sidebar-text { font-size: 0.85rem; color: var(--gray-600); font-weight: 300; line-height: 1.6; }
.sidebar-text strong { color: var(--navy); font-weight: 600; display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.1rem; }

/* ===== PHOTO OVERLAY (about hero) ===== */
.photo-wrap { position: relative; overflow: hidden; border-radius: var(--radius); }
.photo-wrap img { width: 100%; height: auto; display: block; }
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,30,60,0.85) 0%, rgba(12,30,60,0.1) 40%, transparent 60%);
}
.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; z-index: 2;
}
.photo-name { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.2rem; }
.photo-title { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .consult-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 1rem 5%; gap: 2px;
    transform: translateY(-100%); opacity: 0;
    transition: var(--transition); pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.nav-active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-name { font-size: 2rem; }
  .hero-title { font-size: 0.95rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-number { font-size: 1.3rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .page-banner { padding: 100px 0 3rem; }
  .page-banner h1 { font-size: 1.8rem; }
  .practice-block { padding: 1.5rem; }
  .case-body { padding: 1.5rem; }
  .case-result { flex-direction: column; text-align: center; padding: 1rem 1.5rem; }
  .consult-form, .contact-form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.6rem; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .page-banner { padding: 90px 0 2.5rem; }
  .sticky-phone { padding: 0.7rem 1.2rem; font-size: 0.8rem; bottom: 16px; right: 16px; }
  .hero-photo { width: 100px; height: 100px; }
}
