/**
 * Mergers & Acquisitions Branch Styles
 * Professional, authoritative, corporate-focused visual identity
 */

/* Import shared base styles */
@import url('./app.css');

:root {
  /* M&A Brand Colors */
  --ma-primary: #1f2937;
  --ma-primary-hover: #374151;
  --ma-secondary: #4b5563;
  --ma-accent: #314898;
  --ma-accent-light: #3b82f6;
  --ma-success: #059669;
  --ma-warning: #d97706;
  --ma-danger: #dc2626;
  
  /* M&A Gradients */
  --ma-gradient-primary: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  --ma-gradient-hero: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --ma-gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  --ma-gradient-accent: linear-gradient(135deg, #314898 0%, #1e3a8a 100%);
  
  /* M&A Typography */
  --ma-font-primary: 'Poppins', 'Times New Roman', serif;
  --ma-font-heading: 'Poppins', 'Times New Roman', serif;
  
  /* M&A Spacing & Layout */
  --ma-border-radius: 8px;
  --ma-border-radius-lg: 16px;
  --ma-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ma-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ma-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --ma-shadow-enterprise: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Theme-specific body styling */
.theme-mergers-acquisitions {
  font-family: var(--ma-font-primary);
  color: #111827;
  line-height: 1.7;
  font-weight: 400;
}

/* M&A Header Styles */
.theme-mergers-acquisitions .ma-header {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 163, 175, 0.2);
  box-shadow: var(--ma-shadow-lg);
}

.theme-mergers-acquisitions .ma-nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.025em;
}

.theme-mergers-acquisitions .ma-nav-link:hover,
.theme-mergers-acquisitions .ma-nav-link.active {
  color: #ffffff;
}

.theme-mergers-acquisitions .ma-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ma-gradient-accent);
  border-radius: 1px;
}

/* M&A Button Styles */
.theme-mergers-acquisitions .btn-ma-primary {
  background: var(--ma-gradient-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--ma-border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--ma-shadow-lg);
  letter-spacing: 0.025em;
}

.theme-mergers-acquisitions .btn-ma-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--ma-shadow-xl);
}

.theme-mergers-acquisitions .btn-ma-secondary {
  background: transparent;
  color: var(--ma-primary);
  border: 2px solid var(--ma-primary);
  padding: 12px 26px;
  border-radius: var(--ma-border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.025em;
}

.theme-mergers-acquisitions .btn-ma-secondary:hover {
  background: var(--ma-primary);
  color: white;
}

.theme-mergers-acquisitions .btn-ma-accent {
  background: var(--ma-gradient-accent);
  color: white;
  padding: 14px 28px;
  border-radius: var(--ma-border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--ma-shadow-lg);
}

.theme-mergers-acquisitions .btn-ma-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--ma-shadow-xl);
}

/* M&A Hero Section */
.theme-mergers-acquisitions .ma-hero {
  background: var(--ma-gradient-hero);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.theme-mergers-acquisitions .ma-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/pattern-corporate.svg') repeat;
  opacity: 0.05;
  z-index: 1;
}

.theme-mergers-acquisitions .ma-hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.theme-mergers-acquisitions .ma-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.theme-mergers-acquisitions .ma-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.6;
}

/* M&A Card Styles */
.theme-mergers-acquisitions .ma-card {
  background: var(--ma-gradient-card);
  border-radius: var(--ma-border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ma-shadow-lg);
  border: 1px solid rgba(31, 41, 55, 0.1);
  transition: all 0.3s ease;
}

.theme-mergers-acquisitions .ma-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ma-shadow-enterprise);
}

.theme-mergers-acquisitions .ma-card-icon {
  width: 72px;
  height: 72px;
  background: var(--ma-gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.theme-mergers-acquisitions .ma-card h3 {
  color: var(--ma-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.theme-mergers-acquisitions .ma-card p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 1rem;
}

/* M&A Feature Sections */
.theme-mergers-acquisitions .ma-feature-section {
  padding: 6rem 0;
}

.theme-mergers-acquisitions .ma-feature-section:nth-child(even) {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.theme-mergers-acquisitions .ma-section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ma-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.theme-mergers-acquisitions .ma-section-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

/* M&A Enterprise Stats */
.theme-mergers-acquisitions .ma-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
}

.theme-mergers-acquisitions .ma-stat {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--ma-border-radius-lg);
  box-shadow: var(--ma-shadow-lg);
  border: 1px solid rgba(31, 41, 55, 0.1);
}

.theme-mergers-acquisitions .ma-stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ma-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.theme-mergers-acquisitions .ma-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  font-weight: 500;
}

/* M&A Case Studies / Testimonials */
.theme-mergers-acquisitions .ma-case-study {
  background: white;
  border-radius: var(--ma-border-radius-lg);
  padding: 3rem;
  box-shadow: var(--ma-shadow-enterprise);
  position: relative;
  margin: 3rem 0;
  border-left: 4px solid var(--ma-accent);
}

.theme-mergers-acquisitions .ma-case-study-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ma-primary);
  margin-bottom: 1rem;
}

.theme-mergers-acquisitions .ma-case-study-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 2rem;
}

.theme-mergers-acquisitions .ma-case-study-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.theme-mergers-acquisitions .ma-case-study-detail {
  text-align: center;
}

.theme-mergers-acquisitions .ma-case-study-detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.theme-mergers-acquisitions .ma-case-study-detail-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ma-primary);
}

/* M&A Team Profiles */
.theme-mergers-acquisitions .ma-team-member {
  background: white;
  border-radius: var(--ma-border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ma-shadow-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.theme-mergers-acquisitions .ma-team-member:hover {
  transform: translateY(-2px);
  box-shadow: var(--ma-shadow-enterprise);
}

.theme-mergers-acquisitions .ma-team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--ma-gradient-primary);
  border: 4px solid white;
  box-shadow: var(--ma-shadow-lg);
}

.theme-mergers-acquisitions .ma-team-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ma-primary);
  margin-bottom: 0.5rem;
}

.theme-mergers-acquisitions .ma-team-title {
  font-size: 1rem;
  color: var(--ma-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.theme-mergers-acquisitions .ma-team-bio {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* M&A Footer */
.theme-mergers-acquisitions .ma-footer {
  background: var(--ma-gradient-hero);
  color: white;
  padding: 5rem 0 3rem;
}

.theme-mergers-acquisitions .ma-footer-section h3 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.theme-mergers-acquisitions .ma-footer-link {
  color: #d1d5db;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.theme-mergers-acquisitions .ma-footer-link:hover {
  color: var(--ma-accent-light);
}

/* M&A Forms */
.theme-mergers-acquisitions .ma-form {
  background: white;
  border-radius: var(--ma-border-radius-lg);
  padding: 3rem;
  box-shadow: var(--ma-shadow-enterprise);
  border: 1px solid rgba(31, 41, 55, 0.1);
}

.theme-mergers-acquisitions .ma-form-group {
  margin-bottom: 2rem;
}

.theme-mergers-acquisitions .ma-form-label {
  display: block;
  font-weight: 600;
  color: var(--ma-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-mergers-acquisitions .ma-form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--ma-border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-mergers-acquisitions .ma-form-input:focus {
  outline: none;
  border-color: var(--ma-accent);
  box-shadow: 0 0 0 3px rgba(49, 72, 152, 0.1);
}

/* M&A Responsive Design */
@media (max-width: 768px) {
  .theme-mergers-acquisitions .ma-hero h1 {
    font-size: 2.5rem;
  }
  
  .theme-mergers-acquisitions .ma-card {
    padding: 2rem;
  }
  
  .theme-mergers-acquisitions .ma-section-title {
    font-size: 2.25rem;
  }
  
  .theme-mergers-acquisitions .ma-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .theme-mergers-acquisitions .ma-stat {
    padding: 2rem;
  }
  
  .theme-mergers-acquisitions .ma-stat-number {
    font-size: 2.5rem;
  }
  
  .theme-mergers-acquisitions .ma-case-study {
    padding: 2rem;
  }
  
  .theme-mergers-acquisitions .ma-case-study-details {
    grid-template-columns: 1fr;
  }
}

/* M&A Animations */
@keyframes ma-slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ma-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-mergers-acquisitions .ma-animate-slide-left {
  animation: ma-slideInFromLeft 0.8s ease-out forwards;
}

.theme-mergers-acquisitions .ma-animate-fade-up {
  animation: ma-fadeInUp 0.8s ease-out forwards;
}

/* M&A Loading States */
.theme-mergers-acquisitions .ma-loading {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: ma-shimmer 2s infinite;
}

@keyframes ma-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
