/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

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

/* Header */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo {
  height: 4rem;
  width: auto;
}

.brand-text h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.25rem;
}

.brand-text p {
  color: #6b7280;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.nav-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

/* Main content */
.main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

/* Hero section - Matching React gradient */
.hero {
  background: linear-gradient(to right, #D2F1FF, #B3E5FF);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.hero-content {
  max-width: 48rem;
}

.hero-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.hero-logo {
  height: 4rem;
  width: auto;
}

.hero-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1e40af;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: white;
  color: #1f2937;
  border-color: #e5e7eb;
}

.btn-secondary:hover {
  background: #f9fafb;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.feature-description {
  color: #6b7280;
}

/* Service categories */
.service-categories {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 3rem 2rem;
}

.service-categories h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-title.analysis { color: #1e40af; }
.category-title.legal { color: #059669; }
.category-title.compliance { color: #ea580c; }
.category-title.training { color: #7c3aed; }

/* Services page */
.services-header {
  margin-bottom: 2rem;
}

.services-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1.25rem;
  color: #6b7280;
}

.category-filter {
  margin-bottom: 2rem;
}

.category-filter h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #e5e7eb;
  color: #374151;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1e40af;
  color: white;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-header {
  padding: 1.5rem 1.5rem 0;
}

.service-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.service-body {
  padding: 0 1.5rem 1.5rem;
}

.service-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-category {
  background: #dbeafe;
  color: #1e40af;
}

.service-body p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Service detail page */
.service-detail {
  max-width: 64rem;
  margin: 0 auto;
}

.service-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.service-detail h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.service-detail h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #1e40af;
}

.service-detail h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
}

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

.service-detail ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.service-detail li {
  margin-bottom: 0.5rem;
}

/* Contact info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
}

.contact-item h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}

.contact-item p {
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #1e40af;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
  text-align: center;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-title {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .services-list {
    grid-template-columns: 1fr;
  }
}