/* Coverage Master Group - Main Stylesheet */
/* 2025 Design System - WCAG 2.1 AA compliant */

/* CSS Variables for consistent theming */
:root {
  /* Core Palette */
  --primary-ink: #003366;          /* Oxford Blue */
  --primary-accent: #2A9D8F;       /* Teal */
  --accent-warm: #E76F51;          /* Burnt Sienna */
  --neutral-900: #1A202C;          /* Dark text */
  --neutral-700: #4A5568;          /* Secondary text */
  --neutral-200: #EDF2F7;          /* Light background */
  --neutral-100: #F7FAFC;          /* Very light background */
  --white: #ffffff;
  --success-green: #2F855A;
  --warning-orange: #DD6B20;
  --info-blue: #3182CE;
  --border-color: #E2E8F0;

  /* Effects */
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease;
  --border-radius: 10px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--neutral-900);
  background-color: var(--white);
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-ink);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--neutral-700);
}

/* Navigation Styles */
.navbar {
  background-color: var(--white) !important;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-ink) !important;
}

.navbar-nav .nav-link {
  color: var(--neutral-900) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-accent) !important;
}

.navbar-nav .nav-link.active,
.dropdown-item.active {
  color: var(--primary-accent) !important;
  font-weight: 600;
}

.navbar-scrolled {
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(180%) blur(6px);
}

.dropdown-menu {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-ink) 0%, var(--primary-accent) 100%);
  color: var(--white);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-chart {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-warm);
  border-color: var(--accent-warm);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-ink);
  border-color: var(--primary-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background-color: var(--neutral-100);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 2rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-ink);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white);
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.text-primary-custom {
  color: var(--primary-accent) !important;
}

.bg-light-custom {
  background-color: var(--neutral-100) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-200);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-ink);
}

/* Tables */
.table {
  border-color: var(--border-color) !important;
}
.table thead th {
  background-color: var(--neutral-100);
  color: var(--neutral-900);
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--neutral-100);
}

/* Badges */
.badge {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.badge-success { background-color: var(--success-green); }
.badge-info { background-color: var(--info-blue); }
.badge-warning { background-color: var(--warning-orange); }
