/* Professional Corporate Finance Law Firm Styles */
:root {
  /* Professional brand colors */
  --brand-navy: #1E3A8A; /* Deep navy blue - trust and professionalism */
  --brand-gold: #D97706; /* Sophisticated gold - success and premium service */
  --brand-dark: #0F172A; /* Dark slate - authority and stability */
  --brand-gray: #1E293B; /* Professional gray */
  --brand-light-gray: #64748B; /* Light gray for text */
  
  /* Legacy variable mappings for backward compatibility */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --brand-primary: var(--brand-navy);
  --text-primary: var(--brand-dark);
  --text-secondary: var(--brand-light-gray);
  --accent-gold: var(--brand-gold);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Navigation */
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 16px 0;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--brand-navy);
}

/* Buttons */
.btn-primary {
  background: var(--brand-navy);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--brand-navy);
  color: white;
  transform: translateY(-1px);
}

/* Hero section */
.hero {
  padding: 120px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('pic/black-barrister-chambers-professional.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero h1, .hero h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 300;
}

/* Cards */
.card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.law-card {
  background: var(--bg-card);
  padding: 32px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.law-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--brand-navy);
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 32px;
}

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

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: white;
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Contact form specifics */
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: white;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--brand-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Stats and ratings */
.stat {
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.rating {
  color: var(--brand-gold);
  font-weight: 700;
}

/* Footer */
.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer h3, .footer h4 {
  color: white;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Responsive design */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  
  .grid-4, .grid-3, .grid-2 { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  
  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  section { padding: 60px 0; }
  
  .law-card { padding: 24px; }
  
  .nav {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.75rem; }
  
  .hero { padding: 80px 0 40px; }
  section { padding: 40px 0; }
  
  .card, .law-card { padding: 20px; }
}

/* Enhanced professional touches */
.gradient-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.professional-shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Icons and badges */
.icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.badge {
  background: var(--brand-gold);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

/* Smooth scrolling and animations */
html {
  scroll-behavior: smooth;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
.btn-secondary:hover{transform:translateY(-3px);background:var(--brand-primary);color:#111}

/* Practice area preview */
.area-title{font-weight:800;font-size:20px;color:var(--text-primary)}
.area-sub{color:var(--secondary-olive);font-weight:600}

/* Testimonials */
.stars{color:var(--brand-primary);font-size:18px}
.testimonial-quote{font-style:italic;color:var(--text-secondary)}

/* Attorney profile */
.profile{display:flex;gap:20px;align-items:flex-start}
.profile img{width:160px;height:160px;object-fit:cover;border-radius:8px}

/* Responsive layout tweaks */
@media(max-width:900px){
  .profile{flex-direction:column;align-items:center;text-align:center}
  .profile img{margin-bottom:12px}
}

/* Scale icon */
.icon-scale{width:36px;height:36px;display:inline-block;vertical-align:middle;fill:var(--brand-primary)}

