/* ========== VARIABLES ========== */
:root {
  --navy: #0B1D3A;
  --navy-light: #132D5E;
  --maroon: #7A1F2E;
  --maroon-light: #9B2C3F;
  --gold: #C4A35A;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-100: #F0F1F3;
  --gray-200: #E2E4E8;
  --gray-300: #C5C8CE;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: all 0.3s ease;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Georgia', serif; font-weight: 700; line-height: 1.2; }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--maroon); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--maroon);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-logo .logo-icon {
  width: 44px; height: 44px; background: var(--maroon);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  font-family: -apple-system, sans-serif;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-family: -apple-system, sans-serif;
  font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1px; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}
.nav-links .portal-btn {
  background: var(--maroon); color: var(--white) !important;
  padding: 10px 24px; border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-links .portal-btn:hover { background: var(--maroon-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--maroon) 100%);
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px;
}
.hero-badge {
  display: inline-block; background: rgba(196,163,90,0.2);
  color: var(--gold); font-family: -apple-system, sans-serif;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; padding: 8px 20px; border-radius: 30px;
  border: 1px solid rgba(196,163,90,0.3); margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem; color: var(--white); margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  font-size: 1.2rem; color: rgba(255,255,255,0.8);
  margin-bottom: 36px; max-width: 560px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: -apple-system, sans-serif; font-weight: 600;
  font-size: 0.95rem; padding: 14px 32px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-light); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4b36a; color: var(--navy); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat h3 { font-size: 2.2rem; color: var(--gold); font-family: -apple-system, sans-serif; }
.hero-stat p { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-family: -apple-system, sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* ========== SECTIONS ========== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 2.4rem; color: var(--navy); margin-bottom: 16px; }
.section-header .accent-line {
  width: 60px; height: 3px; background: var(--maroon);
  margin: 0 auto 20px;
}
.section-header p { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ========== PRACTICE AREAS ========== */
.practice-areas { background: var(--off-white); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.practice-card {
  background: var(--white); padding: 40px 32px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border-top: 3px solid transparent;
}
.practice-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-top-color: var(--maroon);
}
.practice-card .icon {
  width: 56px; height: 56px; background: rgba(11,29,58,0.06);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px; color: var(--navy);
}
.practice-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; }
.practice-card p { font-size: 0.95rem; color: var(--gray-500); font-family: -apple-system, sans-serif; line-height: 1.6; }

/* ========== ATTORNEY SPOTLIGHT ========== */
.attorney-spotlight { padding: 100px 0; background: var(--white); }
.spotlight-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.spotlight-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.spotlight-content h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 4px; }
.spotlight-title { color: var(--maroon); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 24px; }
.spotlight-content p { color: var(--gray-500); margin-bottom: 16px; font-size: 1rem; line-height: 1.7; }
.spotlight-stats {
  display: flex; gap: 32px; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.spotlight-stats div { text-align: center; }
.spotlight-stats strong { display: block; font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.spotlight-stats span { font-size: 0.8rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }

@media (max-width: 768px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 32px; }
  .spotlight-photo img { max-width: 400px; margin: 0 auto; display: block; }
  .spotlight-stats { flex-wrap: wrap; gap: 20px; }
}

/* ========== WHY CHOOSE US ========== */
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-us-content h2 { font-size: 2.4rem; color: var(--navy); margin-bottom: 20px; }
.why-us-content > p { color: var(--gray-500); margin-bottom: 36px; font-size: 1.05rem; }
.why-us-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.why-us-list li {
  display: flex; gap: 16px; align-items: flex-start;
  font-family: -apple-system, sans-serif;
}
.why-us-list .check {
  width: 28px; height: 28px; min-width: 28px; background: rgba(5,150,105,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--success); font-weight: 700; margin-top: 2px;
}
.why-us-list h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; font-family: -apple-system, sans-serif; }
.why-us-list p { font-size: 0.9rem; color: var(--gray-500); }
.why-us-image {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius); padding: 48px; position: relative;
  min-height: 480px; display: flex; flex-direction: column; justify-content: center;
}
.why-us-image .stat-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.why-us-image .stat-card h3 { color: var(--gold); font-size: 2rem; font-family: -apple-system, sans-serif; }
.why-us-image .stat-card p { color: rgba(255,255,255,0.7); font-family: -apple-system, sans-serif; font-size: 0.9rem; }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--off-white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); padding: 36px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); position: relative;
}
.testimonial-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 1rem; color: var(--gray-700); line-height: 1.7;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-family: -apple-system, sans-serif;
}
.testimonial-author .info h4 { font-size: 0.95rem; color: var(--navy); font-family: -apple-system, sans-serif; }
.testimonial-author .info p { font-size: 0.8rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
  text-align: center; padding: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 64px 0 0; font-family: -apple-system, sans-serif;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}

/* ========== ABOUT PAGE ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 140px 0 80px; text-align: center;
}
.page-hero h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

.team-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.team-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition);
  width: calc((100% - 64px) / 3);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
}
.team-card .info { padding: 24px; text-align: center; }
.team-card .info h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.team-card .info .title { font-size: 0.85rem; color: var(--maroon); font-family: -apple-system, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.team-card .info p { font-size: 0.9rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }

.firm-story { background: var(--off-white); }
.firm-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.firm-story-content h2 { font-size: 2rem; color: var(--navy); margin-bottom: 20px; }
.firm-story-content p { color: var(--gray-500); margin-bottom: 16px; font-size: 1rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.value-item { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value-item .icon { font-size: 2rem; margin-bottom: 12px; }
.value-item h4 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; font-family: -apple-system, sans-serif; }
.value-item p { font-size: 0.85rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }

/* ========== PORTAL ========== */
.portal-page { padding-top: 80px; min-height: 100vh; background: var(--off-white); }
.portal-login {
  max-width: 480px; margin: 80px auto; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 48px;
}
.portal-login .lock-icon {
  width: 64px; height: 64px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 1.5rem; color: var(--gold);
}
.portal-login h2 { text-align: center; color: var(--navy); margin-bottom: 8px; }
.portal-login > p { text-align: center; color: var(--gray-500); margin-bottom: 32px; font-family: -apple-system, sans-serif; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: -apple-system, sans-serif;
  font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 1rem;
  font-family: -apple-system, sans-serif; transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,29,58,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-full { width: 100%; justify-content: center; }
.form-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: var(--danger);
  padding: 12px 16px; border-radius: var(--radius); font-family: -apple-system, sans-serif;
  font-size: 0.9rem; margin-bottom: 20px; display: none;
}
.form-success {
  background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--success);
  padding: 12px 16px; border-radius: var(--radius); font-family: -apple-system, sans-serif;
  font-size: 0.9rem; margin-bottom: 20px; display: none;
}

/* ========== DASHBOARD ========== */
.dashboard { padding-top: 100px; min-height: 100vh; background: var(--off-white); }
.dash-header {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 24px 0; margin-bottom: 32px;
}
.dash-header-inner { display: flex; justify-content: space-between; align-items: center; }
.dash-header h1 { font-size: 1.5rem; color: var(--navy); }
.dash-header .case-badge {
  background: var(--navy); color: var(--gold); padding: 6px 16px;
  border-radius: 20px; font-family: -apple-system, sans-serif;
  font-size: 0.85rem; font-weight: 600;
}
.dash-tabs { display: flex; gap: 4px; background: var(--white); padding: 4px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.dash-tab {
  padding: 12px 24px; border-radius: 4px; font-family: -apple-system, sans-serif;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition);
  border: none; background: none; color: var(--gray-500);
}
.dash-tab.active { background: var(--navy); color: var(--white); }
.dash-tab:hover:not(.active) { background: var(--gray-100); color: var(--navy); }

.dash-panel { display: none; }
.dash-panel.active { display: block; }

.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-item label { display: block; font-family: -apple-system, sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 4px; }
.info-item span { font-family: -apple-system, sans-serif; font-size: 0.95rem; color: var(--gray-900); font-weight: 500; }

.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-family: -apple-system, sans-serif; font-size: 0.8rem; font-weight: 600;
}
.status-badge.open { background: #DBEAFE; color: #1E40AF; }
.status-badge.closed { background: #F3F4F6; color: var(--gray-500); }
.status-badge.pending { background: #FEF3C7; color: #92400E; }
.status-badge.signed { background: #D1FAE5; color: #065F46; }
.status-badge.paid { background: #D1FAE5; color: #065F46; }
.status-badge.unpaid { background: #FEE2E2; color: #991B1B; }

/* Documents table */
.doc-table { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; }
.doc-table th {
  text-align: left; padding: 12px 16px; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500);
  border-bottom: 2px solid var(--gray-100); font-weight: 600;
}
.doc-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.doc-table tr:hover { background: var(--off-white); }
.btn-sm {
  padding: 6px 16px; font-size: 0.8rem; border-radius: 4px;
  font-family: -apple-system, sans-serif; font-weight: 600;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-sign { background: var(--navy); color: var(--white); }
.btn-sign:hover { background: var(--navy-light); }
.btn-disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }

/* Signature modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; max-width: 520px; width: 90%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 20px; }
.modal .close-btn {
  float: right; background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--gray-500); line-height: 1;
}
#signatureCanvas {
  width: 100%; height: 200px; border: 2px dashed var(--gray-300);
  border-radius: var(--radius); cursor: crosshair; margin-bottom: 16px;
  touch-action: none;
}
.sig-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Payment form */
.payment-summary {
  background: var(--off-white); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.payment-summary .total { font-size: 2rem; color: var(--navy); font-family: -apple-system, sans-serif; font-weight: 700; }
.payment-summary .label { font-size: 0.85rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }
.card-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== CONTACT PAGE ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
  display: flex; gap: 16px; padding: 20px; background: var(--off-white);
  border-radius: var(--radius); margin-bottom: 16px;
}
.contact-info-card .icon {
  width: 48px; height: 48px; min-width: 48px; background: var(--navy);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
}
.contact-info-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; font-family: -apple-system, sans-serif; }
.contact-info-card p { font-size: 0.9rem; color: var(--gray-500); font-family: -apple-system, sans-serif; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .practice-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { width: calc(50% - 16px); }
  .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .practice-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .team-card { width: 100%; }
  .why-us-grid, .firm-story-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .dash-tabs { flex-wrap: wrap; }
  .card-input-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
}

/* ========== PRACTICE AREAS PAGE ========== */
.pa-detail { padding: 80px 0; }
.pa-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.pa-detail-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 40px;
  border-left: 4px solid var(--maroon);
}
.pa-detail-card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 12px; }
.pa-detail-card p { font-size: 0.95rem; color: var(--gray-500); font-family: -apple-system, sans-serif; margin-bottom: 16px; }
.pa-detail-card ul { list-style: none; }
.pa-detail-card ul li { padding: 6px 0; font-family: -apple-system, sans-serif; font-size: 0.9rem; color: var(--gray-700); }
.pa-detail-card ul li::before { content: '→'; color: var(--maroon); margin-right: 8px; font-weight: 700; }

/* ========== LOADING SPINNER ========== */
.spinner {
  width: 24px; height: 24px; border: 3px solid var(--gray-200);
  border-top-color: var(--navy); border-radius: 50%;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline-item .date { font-family: -apple-system, sans-serif; font-size: 0.8rem; color: var(--gray-500); margin-bottom: 4px; }
.timeline-item .content { font-family: -apple-system, sans-serif; font-size: 0.9rem; color: var(--gray-700); }
.timeline-item .author { font-size: 0.8rem; color: var(--maroon); font-weight: 600; font-family: -apple-system, sans-serif; }

/* ========== CHATBOT ========== */
#chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
#chatbot-toggle {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
#chatbot-toggle:hover { background: var(--navy-light); transform: scale(1.05); }
#chatbot-window {
  position: absolute; bottom: 72px; right: 0;
  width: 380px; max-height: 520px; background: var(--white);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden;
}
#chatbot-window.open { display: flex; }
#chatbot-header {
  background: var(--navy); color: var(--white); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
#chatbot-header-info { display: flex; align-items: center; gap: 12px; }
#chatbot-avatar {
  width: 36px; height: 36px; background: var(--maroon); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
}
#chatbot-header-name { font-weight: 600; font-size: 0.95rem; }
#chatbot-header-status { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
#chatbot-close-btn {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px;
}
#chatbot-close-btn:hover { color: var(--white); }
#chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px 16px 8px;
  max-height: 300px; min-height: 120px;
}
.chatbot-msg {
  margin-bottom: 10px; padding: 10px 14px; border-radius: 12px;
  font-size: 0.88rem; line-height: 1.5; max-width: 88%; word-wrap: break-word;
}
.chatbot-msg-bot {
  background: var(--gray-100); color: var(--gray-900);
  border-bottom-left-radius: 4px;
}
.chatbot-msg-user {
  background: var(--navy); color: var(--white);
  margin-left: auto; border-bottom-right-radius: 4px;
}
#chatbot-options {
  padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 6px;
}
.chatbot-opt {
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 9px 14px; border-radius: 8px; font-size: 0.85rem;
  color: var(--navy); cursor: pointer; text-align: left;
  transition: var(--transition); font-family: -apple-system, sans-serif;
}
.chatbot-opt:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

@media (max-width: 480px) {
  #chatbot-window { width: calc(100vw - 32px); right: -8px; bottom: 68px; max-height: 70vh; }
}

/* ========== FULL-SCREEN SIGN MODAL ========== */
.sign-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 2000;
  display: none;
}
.sign-overlay.active { display: block; }
.sign-layout {
  display: grid; grid-template-columns: 1fr 420px;
  height: 100%; width: 100%;
}
.sign-pdf-panel {
  background: var(--gray-100); display: flex; flex-direction: column;
}
.sign-pdf-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: var(--navy); color: var(--white);
}
.sign-pdf-header h3 {
  color: var(--white); font-size: 1rem; margin: 0; border: none; padding: 0;
}
.sign-pdf-header .close-btn {
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; cursor: pointer; font-family: -apple-system, sans-serif;
  padding: 6px 16px; border-radius: 4px;
}
.sign-pdf-header .close-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.sign-pdf-panel iframe { flex: 1; width: 100%; border: none; }
.sign-sidebar {
  padding: 32px; display: flex; flex-direction: column;
  border-left: 1px solid var(--gray-200); background: var(--white);
  overflow-y: auto;
}
.sign-sidebar h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; border: none; padding: 0; }

@media (max-width: 768px) {
  .sign-layout { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
}

/* ========== BANK INFO CARD ========== */
.bank-info-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--gray-200);
}
.bank-info-card h4 {
  font-size: 1rem; color: var(--navy); margin-bottom: 16px;
  font-family: -apple-system, sans-serif; padding: 0; border: none;
}
.bank-detail {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--gray-200);
  font-family: -apple-system, sans-serif;
}
.bank-detail:last-of-type { border-bottom: none; }
.bank-detail label {
  font-size: 0.85rem; color: var(--gray-500); font-weight: 500;
  text-transform: none; letter-spacing: 0; margin: 0;
}
.bank-detail span {
  font-size: 0.9rem; color: var(--gray-900); font-weight: 600;
  font-family: 'Courier New', monospace;
}
